diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 01:23:00 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 01:23:00 +1300 |
commit | e368ccc3ce3d1586387514bbc3270e0dc3032b2f (patch) | |
tree | 5421567a17c80ad681f5bb5b715940e2807ace81 | |
parent | Merge branch 'feature/old-formatopts' into develop (diff) | |
parent | Lower threshold for 'formatoptions' 'a' flag (diff) | |
download | dotfiles-e368ccc3ce3d1586387514bbc3270e0dc3032b2f.tar.gz dotfiles-e368ccc3ce3d1586387514bbc3270e0dc3032b2f.zip |
Merge branch 'feature/fo-a-vim7' into develop
* feature/fo-a-vim7:
Lower threshold for 'formatoptions' 'a' flag
-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 |