X-Git-Url: https://code.kerkeslager.com/?p=dotfiles;a=blobdiff_plain;f=.vimrc;h=eac5995a1c3095038d813ddf96431429bee41da1;hp=5aa1f563f684f823056d3e30fcb8f1ccb11eda53;hb=0474d4f3e31338874753e745545c4e344d7a6364;hpb=1ce39ef1ae4a376a098ec52398037461317d0853 diff --git a/.vimrc b/.vimrc index 5aa1f56..eac5995 100644 --- a/.vimrc +++ b/.vimrc @@ -18,6 +18,11 @@ filetype indent on " autocmd filetype python set expandtab " endif +" Allow folding. +set foldenable +set foldmethod=syntax +set foldlevelstart=99 + " Show line numbers. set number set numberwidth=4 @@ -96,5 +101,14 @@ noremap! noremap "" noremap! +" Map open and close items in insert mode. +" Keep this commented out until I can get it working better. +"inoremap { {}O +"inoremap [ []i +"inoremap ( ()i +"inoremap } /}o +"inoremap ] /]a +"inoremap ) /)a + " Automatically reload the .vimrc when changes are made to it au! BufWritePost .vimrc source %