From 61ecab661a886a047c0a01c07c7089c22428ca9c Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Tue, 9 Feb 2016 08:48:37 -0700 Subject: [PATCH] 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. --- vim/vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2