diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 13:29:24 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 13:29:24 +1300 |
commit | 157c36ee49f5f8e37ecbe5598ac50166ae814464 (patch) | |
tree | 1dac3e84dfc63b56e45c65016e82def922b6adea /vim/config | |
parent | Merge branch 'feature/vim-fo-opt-toggle' into develop (diff) | |
download | dotfiles-157c36ee49f5f8e37ecbe5598ac50166ae814464.tar.gz dotfiles-157c36ee49f5f8e37ecbe5598ac50166ae814464.zip |
Precisely define 'formatoptions' 'a' flag presence
:help version6.txt, /^Patch 6\.1\.142:
> Patch 6.1.142
> Problem: Defining paragraphs without a separating blank line isn't
> possible. Paragraphs can't be formatted automatically.
> Solution: Allow defining paragraphs with lines that end in white
> space. Added the 'w' and 'a' flags in 'formatoptions'.
> Files: runtime/doc/change.txt, src/edit.c, src/misc1.c,
> src/normal.c, src/option.h, src/ops.c, src/proto/edit.pro,
> src/proto/ops.pro, src/vim.h
Diffstat (limited to 'vim/config')
-rw-r--r-- | vim/config/format.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/config/format.vim b/vim/config/format.vim index 61222164..477ad6d2 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -29,7 +29,8 @@ if has('eval') " 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 > 700 + 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> |