Permalink
Browse files

Mapping <CR> to clear search causes problems in VIM

Move the mapping to <Leader><CR> to avoid the issue, and at almost no
repercussions.
  • Loading branch information...
1 parent 99b4366 commit 219d2a96dde71c1271d9b658dad792c38276796c @bigjason bigjason committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .vimrc
View
2 .vimrc
@@ -63,7 +63,7 @@ colorscheme solarized
" KEY MAPPINGS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" remove search highlight
-nnoremap <CR> :nohlsearch<CR>
+nnoremap <leader><CR> :nohlsearch<CR>
" move current line down one line
nnoremap - ddp
" move current line up one line

0 comments on commit 219d2a9

Please sign in to comment.