Explorar o código

added check for nvim to esc highlight removal

Joshua Bicking %!s(int64=8) %!d(string=hai) anos
pai
achega
8065140f50
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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"))