X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3b988e89bbc4154850b407f159b903a1e2835753..420692d9f97308e7a016fa6bf4ad6988f1280d33:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index c52eb6b..111300a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -6,12 +6,12 @@ " use xdg set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after +" bundles {{{1 filetype off set rtp+=$XDG_DATA_HOME/vim/vundle call vundle#rc('$XDG_DATA_HOME/vim') Bundle 'gmarik/vundle' -Bundle 'wincent/Command-T' Bundle 'bling/vim-airline' Bundle 'ctrlp.vim' Bundle 'fugitive.vim' @@ -86,7 +86,7 @@ endif set background=dark " Dark background, d'uh! syntax on -set spelllang=en,de,fr " list of accepted languages +set spelllang=en_gb " list of accepted languages set dictionary=spell " list of dictionary files for keyword completion " toggle spell-checking map :set nospell!:set nospell? @@ -184,7 +184,7 @@ nmap m :set expandtab tabstop=2 shiftwidth=2 softtabstop=2 " folding {{{1 set foldmethod=marker " folding type -set foldlevelstart=99 " value for 'foldlevel' when starting to edit a file +set foldlevelstart=0 " value for 'foldlevel' when starting to edit a file " space will toggle current fold in normal mode nnoremap @=(foldlevel('.')?'za':"\") @@ -192,6 +192,7 @@ nnoremap @=(foldlevel('.')?'za':"\") vnoremap zf " save and restore folds +set viewoptions=folds,cursor " don't save local options autocmd BufWinLeave *.* mkview autocmd BufWinEnter *.* silent loadview