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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Does it really take four keystrokes to delete a line in Vim?

1 点作者 pjbrunet超过 8 年前

1 comment

WorldMaker超过 8 年前
The paradigm shift that vim asks here is to think of normal mode (it is not &quot;delete&quot; mode, it is &quot;normal&quot; mode) as well normal, the place to be. This shift in thinking can take some work to get used to, but in vim thinking, it is the insert mode that should be used more rarely and that it is insertion and insert mode that requires the `ESC` to say &quot;I&#x27;m done inserting&quot;. (And thus delete line is only ever `dd`; `ESC` is not a part of deletion, it is a part of insertion.)<p>One of the things that typically helps to get into this mode of thinking is to take advantage of&#x2F;get used to using the home row &quot;arrow keys&quot; (hjkl) for navigation. Instead of moving your hand to the arrow keys (or worse, all the way over to your mouse), don&#x27;t leave the home row and try navigating in normal mode with hjkl.
评论 #13170017 未加载