commit cbfdb47f4e073fbbcdebd7b543280457c114a843
parent f15a31ff4600476db90cae8417f6bfa5cde2b8b5
Author: Ed van Bruggen <ed@edryd.org>
Date: Mon, 18 Sep 2017 13:03:11 -0700
vim: Don't save line number for git commit files
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/vimrc b/vimrc
@@ -179,6 +179,8 @@ if has("autocmd")
" save line number line when reopening file
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
+ " don't for git commit file
+ autocmd FileType gitcommit normal gg
" remove trailing whitespace
autocmd BufWritePre * %s/\s\+$//e