From 685f68f70a551069b5728b0293ab01ce6e96accc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 16 Oct 2021 21:30:40 +0100 Subject: [PATCH] feat(nvim): clear highlighting after search --- nvim/.config/nvim/plugins/mappings.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/.config/nvim/plugins/mappings.vim b/nvim/.config/nvim/plugins/mappings.vim index 6b27a6a..8c3476a 100644 --- a/nvim/.config/nvim/plugins/mappings.vim +++ b/nvim/.config/nvim/plugins/mappings.vim @@ -23,4 +23,7 @@ noremap noremap noremap +" Clears hlsearch after doing a search, otherwise just does normal stuff +nnoremap {-> v:hlsearch ? ":nohl\" : "\"}() + nnoremap :silent !tmux neww tmux-sessioniser