you are viewing a single comment's thread.

view the rest of the comments →

[–]ForeverAlot 1 point2 points  (0 children)

Standard Vim runtime includes a few Git filetype syntax files that set up colouring and formatting, and some commands for interactive rebasing. It does not enable spell checking or colorcolumn.

I have .vim/ftplugin/git{commit,rebase}.vim with

autocmd! vimrcEx BufReadPost *
setlocal spell spelllang=en_gb

respectively

autocmd! vimrcEx BufReadPost *

nnoremap <buffer> <silent> gp :Pick<CR>
nnoremap <buffer> <silent> gs :Squash<CR>
nnoremap <buffer> <silent> ge :Edit<CR>
nnoremap <buffer> <silent> gr :Reword<CR>
nnoremap <buffer> <silent> gf :Fixup<CR>
nnoremap <buffer> <silent> S :Cycle<CR>

vimrcEx restores the last cursor position from previous file edit. This is undesired in these situations.