From: Samir Benmendil Date: Tue, 20 May 2014 08:43:55 +0000 (+0100) Subject: vim: space be your leader X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/56491639034ae215c8eff0ee94f4379b53949c68 vim: space be your leader --- diff --git a/vim/vimrc b/vim/vimrc index 5930b40..033b90d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -49,6 +49,10 @@ set runtimepath +=$XDG_CONFIG_HOME/vim/after filetype plugin indent on +" bindings {{{1 +" allow both and / to be +map + " moving around, searching and patterns {{{1 set incsearch " show match for partly typed search command set ignorecase " ignore case when using a search pattern @@ -230,9 +234,9 @@ set foldmethod=marker " folding type set foldlevelstart=0 " value for 'foldlevel' when starting to edit a file " space will toggle current fold in normal mode -nnoremap @=(foldlevel('.')?'za':"\") +nnoremap za " create folds around visual selection -vnoremap zf +vnoremap zf " save and restore folds set viewoptions=folds,cursor " don't save local options