diff --git a/.vimrc b/.vimrc index 9955618..e709c3d 100644 --- a/.vimrc +++ b/.vimrc @@ -68,6 +68,13 @@ set splitbelow " New vsplit placed right set splitright +set foldmethod=syntax +set foldlevelstart=20 " buffer are always loaded with opened folds + +" persistent undo across sessions +set undofile +set undodir=~/.vim/undodir + let mapleader = "," " leader key is comma " xx will delete the line without copying it into the default register @@ -110,7 +117,7 @@ cnoremap %% =expand('%:h').'/' map p :CtrlP %% " use shift-space as escape -inoremap +"inoremap set list " print tabs with a special character (add ",eol:ยท" for end of lines)