From 012d4eb64345120a2a1f52736a04409a7628b436 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 14 Sep 2016 10:36:49 -0400 Subject: [PATCH] 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. --- vimrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 41fdbb8..32826a8 100644 --- a/vimrc +++ b/vimrc @@ -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 sw :SudoWrite map sz :so ~/.vimrc " PLUGIN CONFIGURATION -" vim-fugitive should do this, but it isn't working -au FileType gitcommit set tw=72 - " style colorscheme jellybeans syntax enable