在Vim里删行,你的剪贴板可能正被默默清空
原创
你有没有遇到过这种情况:批量删了几十条匹配行,回到第一个register一看,刚才辛辛苦苦复制的那段代码没了?Vim里有个"黑洞寄存器"——`/`或者`_`,往里面yank,文本直接蒸发,不留任何副本。我觉得这是Vim最被低估的小技巧之一,比`d`更干净,因为它根本不会碰你的寄存器历史。想清理匹配行又不想毁掉操作栈?`y/`就是你的归宿。
原文:The Black Hole (Vim) Register · 来源:Hacker News
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除
相关文章
- Stabyourself.net Games
- 【IT 早报】2026年11月19日 - 本周要闻与趋势
- 从均匀平铺到自适应路由:RINs 如何让扩散生成提速 10 倍?
- Claude Code makes a finished subagent send its report twice (70-second repro)
- Becerra faces a $2B budget deficit as potential AI bust looms
- Show HN: Agent Hive – cute Grokbot like agentic teams with queen and many bees
- Show HN: Lazycow Studio – turns footage you never edited into reels, locally
- Experiments in Weight-Space Programming
- Lindy Effect
- Meet Your Neighbors – A new type of political compass
最新文章
- Stabyourself.net Games 40分钟前
- 【IT 早报】2026年11月19日 - 本周要闻与趋势 43分钟前
- 从均匀平铺到自适应路由:RINs 如何让扩散生成提速 10 倍? 2小时前
- Claude Code makes a finished subagent send its report twice (70-second repro) 2小时前
- Becerra faces a $2B budget deficit as potential AI bust looms 2小时前
- Show HN: Agent Hive – cute Grokbot like agentic teams with queen and many bees 3小时前
- Show HN: Lazycow Studio – turns footage you never edited into reels, locally 3小时前
- Experiments in Weight-Space Programming 3小时前
- Lindy Effect 3小时前
- Meet Your Neighbors – A new type of political compass 5小时前
itfan123




