Skip to content

Commit

Permalink
Make clear search results vim alias non-recursive
Browse files Browse the repository at this point in the history
The alias is bound to the enter key but also includes it, so the
recursive version was getting stuck in an infinite loop.
  • Loading branch information
eugeneius committed Jul 20, 2014
1 parent c3fe502 commit 0aba88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set incsearch
set hlsearch

" Clear the currently highlighted search results by pressing enter.
:nmap <silent> <CR> :nohlsearch<CR><CR>
:nnoremap <silent> <CR> :nohlsearch<CR><CR>
" Disable modeline support; I don't use them.
" They have also historically been a source of security vulnerabilities.
Expand Down

0 comments on commit 0aba88a

Please sign in to comment.