From 8e4a338fc0e99ab2a74d3e207bb58b9c1c4840af Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 29 Dec 2018 23:06:18 +1300 Subject: Silence output from normal operations --- autoload/regex_escape.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/regex_escape.vim b/autoload/regex_escape.vim index 2390804..380f48b 100644 --- a/autoload/regex_escape.vim +++ b/autoload/regex_escape.vim @@ -29,11 +29,11 @@ function! regex_escape#Operatorfunc(type) abort " Select or re-select text, depending on how we were invoked if a:type ==# 'line' - normal! '[V']y + silent normal! '[V']y elseif a:type ==# 'block' " Typically doesn't work too well - execute "normal! `[\`]y" + silent execute "normal! `[\`]y" else - normal! `[v`]y + silent normal! `[v`]y endif " Determine the regex flavor to use; if one is defined for the buffer, use @@ -51,7 +51,7 @@ function! regex_escape#Operatorfunc(type) abort " Paste our substituted changes back in over the top of the previously " selected text, by reselecting it before the paste - normal! gvp + silent normal! gvp " Restore contents of the unnamed register and the previous values of the " 'clipboard' and 'selection' options. -- cgit v1.2.3