From 6b7983966b58454198b758b831cd11662591387c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 15 Jan 2019 00:04:37 +1300 Subject: Add setting for p flag to Vim 'formatoptions' --- vim/vimrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vim') 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*' -- cgit v1.2.3