aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-05 01:21:48 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-05 01:21:48 +1300
commit21366b8848fd44c4c83e6f0bc87ed9c6644e74de (patch)
tree5421567a17c80ad681f5bb5b715940e2807ace81
parentMerge branch 'feature/old-formatopts' into develop (diff)
downloaddotfiles-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.
-rw-r--r--vim/config/format.vim6
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