TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 delwin超过 13 年前
Sometimes I write notes to myself like "/why are you working at this hour, go to sleep already"

4 条评论

gharbad超过 13 年前
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 未加载
anayini超过 13 年前
:noh
DevX101超过 13 年前
:noh
eof超过 13 年前
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>