]> Sergey Matveev's repositories - dotfiles.git/commitdiff
No use for gitcommit's view
authorSergey Matveev <stargrave@stargrave.org>
Thu, 17 Jun 2021 09:20:32 +0000 (12:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 17 Jun 2021 09:20:32 +0000 (12:20 +0300)
vim/.vimrc

index 1b61e9e102295411fa5b4550c044855b930c316f..9f9b57fd84661e4edda41cfff4676d4982eb76db 100644 (file)
@@ -92,7 +92,7 @@ endfunction
 " }}}
 
 " View saving {{{
-autocmd BufWinLeave ?* silent! mkview
+autocmd BufWinLeave ?* silent! if &ft !=# "gitcommit" | mkview | endif
 autocmd BufWinEnter ?* silent loadview
 " }}}