TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What do you use for clearing search highlighting in vim?

1 pointsby delwinover 13 years ago
Sometimes I write notes to myself like "/why are you working at this hour, go to sleep already"

4 comments

gharbadover 13 years ago
Knowing the people I work with, a comment like that might actually exist in the code..<p>Typically I use /^$^<p>I believe the proper way to do it is :noh
评论 #3305757 未加载
anayiniover 13 years ago
:noh
DevX101over 13 years ago
:noh
eofover 13 years ago
i used do similar; but not the notes; just random banging followed by an enter/escape.<p><pre><code> /daljfdlkja &#60;enter&#62;&#60;escape&#62; </code></pre> now i don't use highlighting by default<p>from: <a href="http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches" rel="nofollow">http://vim.wikia.com/wiki/Highlight_all_search_pattern_match...</a><p><pre><code> " Press Space to turn off highlighting and clear any message already displayed. :nnoremap &#60;silent&#62; &#60;Space&#62; :nohlsearch&#60;Bar&#62;:echo&#60;CR&#62;</code></pre>