From 4ed4a4b028164ac0364729ccb30713d3a26a7e7f Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 17 May 2016 14:29:29 -0700 Subject: [PATCH] Remove enter bind to clear search --- dotfiles/config/nvim/init.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index e1324a4..39ee40d 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -131,9 +131,6 @@ let g:rust_recommended_style=0 " Note noremap is a normal mode non-recursive mapping " nnoremap and nmap make the bind only work in normal mode -"map C-l to clear last search -:noremap :nohls - let mapleader=" " map t :NERDTreeToggle nnoremap r :call NumberToggle() @@ -141,9 +138,8 @@ nnoremap r :call NumberToggle() " This one maps F5 to delete all trailing whitespace nnoremap :let _s=@/:%s/\s\+$//e:let @/=_s:nohl -" Pressing enter in command mode clears the current search highlighting until -" the next search. -nnoremap :noh +"Bind C-l to clear last search +:noremap :nohls " ctrlp hotkeys let g:ctrlp_map=''