diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 01:21:48 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 01:21:48 +1300 |
commit | 21366b8848fd44c4c83e6f0bc87ed9c6644e74de (patch) | |
tree | 5421567a17c80ad681f5bb5b715940e2807ace81 /vim/config | |
parent | Merge branch 'feature/old-formatopts' into develop (diff) | |
download | dotfiles-21366b8848fd44c4c83e6f0bc87ed9c6644e74de.tar.gz dotfiles-21366b8848fd44c4c83e6f0bc87ed9c6644e74de.zip |
Lower threshold for 'formatoptions' 'a' flag
I have found it works correctly on an instance of Vim 7.0.
Diffstat (limited to 'vim/config')
-rw-r--r-- | vim/config/format.vim | 6 |
1 files 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') \ :<C-U>ToggleOptionFlagLocal formatoptions t<CR> " 'a' is newer - if v:version >= 701 + if v:version >= 700 nnoremap <silent> \ <Leader>a \ :<C-U>ToggleOptionFlagLocal formatoptions a<CR> else nnoremap <silent> \ <Leader>a - \ :<C-U>echomsg 'No "formatoptions" "a" flag in Vim < 7.1'<CR> + \ :<C-U>echomsg 'No "formatoptions" "a" flag in Vim < 7.0'<CR> endif endif |