]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vimrc
I do not use vim-fzf at all
[dotfiles.git] / vim / .vimrc
index 1b61e9e102295411fa5b4550c044855b930c316f..66b729b0ea068716dee5bbe414de7820fb346580 100644 (file)
@@ -9,9 +9,9 @@ set encoding=utf-8
 "set t_kD=\7f
 set mouse="" " if Vim is compiled with mouse support
 
-set viminfo='100,<50,s10,f1,%,n~/secure/vim/info
+set viminfo-=h
+set viminfo+=f1,%,n~/secure/vim/info
 set viewdir=~/secure/vim/view
-set history=128
 set directory=~/secure/vim/tmp
 set undodir=~/secure/vim/undo
 set undofile
@@ -92,8 +92,8 @@ endfunction
 " }}}
 
 " View saving {{{
-autocmd BufWinLeave ?* silent! mkview
-autocmd BufWinEnter ?* silent loadview
+autocmd BufWinLeave ?* silent! if &ft !=# "gitcommit" | mkview | endif
+autocmd BufWinEnter ?* silent! loadview
 " }}}
 
 " Windows related {{{