aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 724a32e7..d3a814f2 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -109,10 +109,17 @@ if has('folding')
endif
" Delete comment leaders when joining lines, if supported
-if v:version > 703 || v:version == 703 && has('patch541')
+if v:version > 703
+ \ || v:version == 703 && has('patch541')
set formatoptions+=j
endif
+" Don't break a single space after a period, if supported
+if v:version > 801
+ \ || v:version == 801 && has('patch728')
+ set formatoptions+=p
+endif
+
" If available, use GNU grep niceties for searching
if system('grep --version') =~# '^grep (GNU grep)'
set grepprg=grep\ -HnRs\ --exclude='.git*'