Skip to content

Instantly share code, notes, and snippets.

@mattyohe
Created September 5, 2013 18:59
Show Gist options
  • Save mattyohe/6454548 to your computer and use it in GitHub Desktop.
Save mattyohe/6454548 to your computer and use it in GitHub Desktop.
" Clear the search buffer when hitting return
function! MapCR()
nnoremap <cr> :nohlsearch<cr>
endfunction
call MapCR()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment