projects
/
dotfiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ce39ef
)
Added and then removed some vim plugins
author
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 16 Sep 2010 14:30:12 +0000
(07:30 -0700)
committer
David Kerkeslager
<david.kerkeslager@globalpovertyproject.com>
Tue, 4 Aug 2015 15:01:14 +0000
(15:01 +0000)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
5aa1f56
..
eac5995
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-18,6
+18,11
@@
filetype indent on
" autocmd filetype python set expandtab
" endif
" autocmd filetype python set expandtab
" endif
+" Allow folding.
+set foldenable
+set foldmethod=syntax
+set foldlevelstart=99
+
" Show line numbers.
set number
set numberwidth=4
" Show line numbers.
set number
set numberwidth=4
@@
-96,5
+101,14
@@
noremap! <Left> <Esc>
noremap <Right> ""
noremap! <Right> <Esc>
noremap <Right> ""
noremap! <Right> <Esc>
+" Map open and close items in insert mode.
+" Keep this commented out until I can get it working better.
+"inoremap { {<CR>}<Esc>O
+"inoremap [ []<Esc>i
+"inoremap ( ()<Esc>i
+"inoremap } <Esc>/}<CR>o
+"inoremap ] <Esc>/]<CR>a
+"inoremap ) <Esc>/)<CR>a
+
" Automatically reload the .vimrc when changes are made to it
au! BufWritePost .vimrc source %
" Automatically reload the .vimrc when changes are made to it
au! BufWritePost .vimrc source %