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(+) 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 From ac178362e6cdfabb4cd648d6c3ca83f5229c2610 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 15 Jan 2019 00:04:58 +1300 Subject: Break up some long conditions for readability --- vim/vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 0fe80a58..d3a814f2 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -109,12 +109,14 @@ 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') +if v:version > 801 + \ || v:version == 801 && has('patch728') set formatoptions+=p endif -- cgit v1.2.3 From 11306b4b6cd2fed8bb5ecf661a3b7f1236c6e3d2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 15 Jan 2019 00:06:26 +1300 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 566fddaf..dca0777c 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v4.10.0 -Mon Jan 7 03:28:11 UTC 2019 +tejr dotfiles v4.11.0 +Mon Jan 14 11:06:26 UTC 2019 -- cgit v1.2.3