Ask HN: What do you use for clearing search highlighting in vim?
Sometimes I write notes to myself like "/why are you working at this hour, go to sleep already"
5 comments
:noh
:noh
i used do similar; but not the notes; just random banging followed by an enter/escape.
from: http://vim.wikia.com/wiki/Highlight_all_search_pattern_match...
/daljfdlkja <enter><escape>
now i don't use highlighting by defaultfrom: http://vim.wikia.com/wiki/Highlight_all_search_pattern_match...
" Press Space to turn off highlighting and clear any message already displayed.
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>