Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 219d2a96dde71c1271d9b658dad792c38276796c 1 parent 99b4366
@bigjason bigjason authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.