瀏覽代碼

added check for nvim to esc highlight removal

Joshua Bicking 8 年之前
父節點
當前提交
8065140f50
共有 1 個文件被更改,包括 3 次插入1 次删除
  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"))