Locally defined coa and cot should work like their counterparts in
unimpaired.vim, where the actual command is echoed on the status line
rather than a human readable description of what happened. This is
great for consistency but also good for informing the user what these
commands actuall do.
let tmp = substitute(&formatoptions, 't', '', '')
if &formatoptions == tmp
set fo+=t
let tmp = substitute(&formatoptions, 't', '', '')
if &formatoptions == tmp
set fo+=t
- :echo "Enable text wrap"
- :echo "Disable text wrap"
let tmp = substitute(&formatoptions, 'a', '', '')
if &formatoptions == tmp
set fo+=a
let tmp = substitute(&formatoptions, 'a', '', '')
if &formatoptions == tmp
set fo+=a
- :echo "Enable auto-wrap paragraphs"
- :echo "Disable auto-wrap paragraphs"