diff options
-rw-r--r-- | vim/config/format.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vim/config/format.vim b/vim/config/format.vim index 477ad6d2..54d46dc2 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -26,12 +26,6 @@ if has('eval') finish endif - " Figure out if we have the 'a' flag for 'formatoptions', to reapply - " 'textwidth' wrapping to the current paragraph on every insertion or - " deletion; keep in a script variable - let s:formatoptions_has_a = v:version > 610 - \ || v:version ==# 610 && has('patch142') - " 'c' and 't' have both been around since at least 6.1 nnoremap <silent> \ <Leader>c @@ -40,6 +34,12 @@ if has('eval') \ <Leader>t \ :<C-U>ToggleOptionFlagLocal formatoptions t<CR> + " Figure out if we have the 'a' flag for 'formatoptions', to reapply + " 'textwidth' wrapping to the current paragraph on every insertion or + " deletion; keep in a script variable + let s:formatoptions_has_a = v:version > 610 + \ || v:version ==# 610 && has('patch142') + " 'a' needs testing if s:formatoptions_has_a nnoremap <silent> |