Browse Source

added check for nvim to esc highlight removal

Joshua Bicking 8 years ago
parent
commit
8065140f50
1 changed files with 3 additions and 1 deletions
  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"))