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.

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

1 pointsby pjbrunetover 8 years ago

1 comment

WorldMakerover 8 years ago
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 未加载