From: Samir Benmendil Date: Thu, 30 Jan 2014 03:15:11 +0000 (+0100) Subject: vim: fold ALL the things X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/51f4f6d6707fb6177d0d4e88fb1b04994066e04e?ds=inline vim: fold ALL the things --- diff --git a/vim/vimrc b/vim/vimrc index c52eb6b..e17be89 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -6,6 +6,7 @@ " 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') @@ -184,7 +185,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':"\")