From: R. Steve McKown Date: Tue, 9 Feb 2016 15:48:37 +0000 (-0700) Subject: Have all coX commands report actual command used X-Git-Url: https://oss.titaniummirror.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=61ecab661a886a047c0a01c07c7089c22428ca9c;p=smckown%2Fdotfiles.git Have all coX commands report actual command used 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. --- diff --git a/vim/vimrc b/vim/vimrc index 6ad73bf..ab4b160 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -372,10 +372,10 @@ function! ToggleFormatOptionT() let tmp = substitute(&formatoptions, 't', '', '') if &formatoptions == tmp set fo+=t - :echo "Enable text wrap" + :echo ":set fo+=t" else set fo-=t - :echo "Disable text wrap" + :echo ":set fo-=t" endif endfunction @@ -385,10 +385,10 @@ function! ToggleFormatOptionA() let tmp = substitute(&formatoptions, 'a', '', '') if &formatoptions == tmp set fo+=a - :echo "Enable auto-wrap paragraphs" + :echo ":set fo+=a" else set fo-=a - :echo "Disable auto-wrap paragraphs" + :echo ":set fo-=a" endif endfunction