aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-15 00:04:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-15 00:04:37 +1300
commit6b7983966b58454198b758b831cd11662591387c (patch)
tree4e0129a6b7e51aa33f1a5e0350d4e7634c7719e1 /vim
parentMerge branch 'release/v4.10.0' into develop (diff)
downloaddotfiles-6b7983966b58454198b758b831cd11662591387c.tar.gz
dotfiles-6b7983966b58454198b758b831cd11662591387c.zip
Add setting for p flag to Vim 'formatoptions'
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 724a32e7..0fe80a58 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -113,6 +113,11 @@ 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*'