update vimrc
prithugoswami prithugoswami524@gmail.com
Tue, 29 May 2018 23:14:20 +0530
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
.vimrc
→
.vimrc
@@ -40,7 +40,12 @@ set foldlevelstart=10 " open most folds by default
set foldnestmax=10 " 10 nested folds max set foldmethod=indent " fold based on indent +" <Space> is foldToggle (za) in normal mode +nnoremap <silent> <Tab> @=(foldlevel('.')?'za':"\<Space>")<CR> +" Preserve folds +autocmd BufWinLeave * mkview +autocmd BufWinEnter * silent loadview set number " number line