From 2c9242d8640bbf491bb01274328f71272f322a22 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 14 Dec 2019 18:54:38 +0100 Subject: s:AddMapping(): Silence `:nohlsearch` output The `silent!` command I was using didn't silence the `:nohlsearch` output after pressing ``. Use `` in the mapping instead to silence it, allowing the Nohai search commands to produce output similar to the regular `/` and `?` commands. --- autoload/nohai.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/nohai.vim b/autoload/nohai.vim index 726d4c8..a99c5e0 100644 --- a/autoload/nohai.vim +++ b/autoload/nohai.vim @@ -1,6 +1,6 @@ " Remaps in command mode to run `nohlsearch` after accepting the command. function! s:AddMapping() - silent! cnoremap CRAndNohlsearch() + cnoremap CRAndNohlsearch() endfunction " Removes the Nohai cmap. -- cgit v1.2.3