diff options
Diffstat (limited to 'vim/.vim/ftplugin/gitcommit.vim')
-rw-r--r-- | vim/.vim/ftplugin/gitcommit.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/.vim/ftplugin/gitcommit.vim b/vim/.vim/ftplugin/gitcommit.vim new file mode 100644 index 0000000..b1c1450 --- /dev/null +++ b/vim/.vim/ftplugin/gitcommit.vim @@ -0,0 +1,9 @@ +setlocal viminfo= +augroup local_gitcommit + autocmd! + autocmd BufWinEnter <buffer> + \ if getline(1) == '' | + \ exe "normal! ggO" | + \ startinsert | + \ endif +augroup END |