The actual solution to my git line wrap problems

Apparently, I need formatoptions to include t for vim-fugitive to
correctly wrap at 72 characters. I have no idea why, but I guess this is
an indicator I should figure out what formatoptions actually is doing
for me instead of just copying it from someone else's vimrc.

Solution from http://stackoverflow.com/a/11023282 in one of the
comments.
This commit is contained in:
Andrew Tomaka 2016-09-14 10:36:49 -04:00
parent 3e653c3da3
commit 012d4eb643

5
vimrc
View file

@ -39,7 +39,7 @@ set endofline " Add newline at end of file
set shellslash " Forward slashes
set nobackup " No backup files
set noswapfile " Hope for the best
set formatoptions=crq
set formatoptions=crqt
set textwidth=80
set cpoptions+=$ " delimit end of change text
set laststatus=2 " Always show status line
@ -145,9 +145,6 @@ map <Leader>sw :SudoWrite<cr>
map <Leader>sz :so ~/.vimrc<cr>
" PLUGIN CONFIGURATION
" vim-fugitive should do this, but it isn't working
au FileType gitcommit set tw=72
" style
colorscheme jellybeans
syntax enable