From 21366b8848fd44c4c83e6f0bc87ed9c6644e74de Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 5 Nov 2017 01:21:48 +1300 Subject: Lower threshold for 'formatoptions' 'a' flag I have found it works correctly on an instance of Vim 7.0. --- vim/config/format.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/config/format.vim b/vim/config/format.vim index 40019d0a..fe6da87c 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -13,7 +13,7 @@ endif " to set for me) " t - Automatically wrap text at 'textwidth' (as above) " -" Only in Vim >= 7.1 (I think): +" Only in Vim >= 7.0 (I think): " " a - Automatically format paragraphs, reapplying the wrap on every text " insertion or deletion; sometimes I want this and sometimes I @@ -31,14 +31,14 @@ if has('eval') && has('user_commands') \ :ToggleOptionFlagLocal formatoptions t " 'a' is newer - if v:version >= 701 + if v:version >= 700 nnoremap \ a \ :ToggleOptionFlagLocal formatoptions a else nnoremap \ a - \ :echomsg 'No "formatoptions" "a" flag in Vim < 7.1' + \ :echomsg 'No "formatoptions" "a" flag in Vim < 7.0' endif endif -- cgit v1.2.3