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.

Learn to speak vim - verbs, nouns, and modifiers

208 pointsby skwpover 13 years ago

8 comments

lhnzover 13 years ago
I am ashamed to say that this made me giggle like a girl.<p>I guess I'm the kind of guy that understands and learns in this way better than seeing visual cheatsheets or long-winded reference pages. Up until now I've just been remembering particular sets of vim commands but this will really make me a lot more productive I'm sure. :)
评论 #3364068 未加载
评论 #3364440 未加载
lukegruover 13 years ago
If this gets people into vim and helps them understand some of its craziness, that's awesome. However, like previous commenters have pointed out, most of these examples are actually wrong (not by a mile, but it pays to be precise in vim). Also, even though I love browsing through dotfiles and plugins on code repository sites, I tend to think that beginners to vim should learn slowly, gradually, and build up their knowledge over time, like anything else. Diving into plugins and custom mappings right away is going to be a lot more painful and less productive. And that's the antithesis of vim.
评论 #3363467 未加载
morschover 13 years ago
This is similar to the post <i>Your problem with Vim is that you don't grok vi</i> at <a href="http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118" rel="nofollow">http://stackoverflow.com/questions/1218390/what-is-your-most...</a> (also on HN somewhere).
Dysiodeover 13 years ago
I'd been familiar with the concept of verbs and nouns in vim but this really simplifies it all. I wish there was a more comprehensive list of everything in a readable format. Man pages just don't do it for me :(
评论 #3363464 未加载
评论 #3363610 未加载
wahnfriedenover 13 years ago
This has some mistakes. yt$ is not equivalent to yy - yt$ yanks from the cursor to the end, yy is equivalent to 0yt$
评论 #3362276 未加载
评论 #3362476 未加载
评论 #3362390 未加载
djacobsover 13 years ago
These kinds of blog posts always forget the 's/S' (substitute) operator. I find it super-useful.
评论 #3363472 未加载
oacgnolover 13 years ago
Useful - I found that mapping keys to actual verbs in my head as I'm using vim really helps the memorization process.<p>This doesn't exactly work for everything though... I'm still having trouble remembering movement keys (still using the arrow keys instead of hjkl...).
评论 #3362174 未加载
评论 #3363099 未加载
评论 #3362320 未加载
wahnfriedenover 13 years ago
Is there any way to use a / search as the target object with these sorts of commands? I'd like for instance to be able to type ct/foo&#60;cr&#62; and have it delete to the next instance of foo and put me in insert mode. Or something along those lines.
评论 #3363900 未加载
评论 #3363973 未加载