Pārlūkot izejas kodu

added check for nvim to esc highlight removal

Joshua Bicking 8 gadi atpakaļ
vecāks
revīzija
8065140f50
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      vimrc

+ 3 - 1
vimrc

@@ -76,7 +76,9 @@ endfunc
 nnoremap <C-n> :call NumberToggle()<CR>
 
 " Esc clears search highlight
-nnoremap <silent> <esc> :noh<cr><esc>
+if has('nvim')
+    nnoremap <silent> <esc> :noh<cr><esc>
+endif
 
 " set shell to zsh on linux (if it exists)
 if !(has("win32") || has("win16") || has("win32unix"))