1 2 3 4 5 6 7 8 9
setlocal viminfo= augroup local_gitcommit autocmd! autocmd BufWinEnter <buffer> \ if getline(1) == '' | \ exe "normal! ggO" | \ startinsert | \ endif augroup END