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.

Best Vim Tips

60 pointsby epallalmost 16 years ago

4 comments

mlLKalmost 16 years ago
Good post, I'm (more or less) an emacs guy, but vimtutor + this + 1 to 2 days of my time might certainly convince me of switching to vim.<p>(warning, by no means am I trying to instigate yet another emacs vs vim thread but here I go)<p>Not to hate on emacs, since it has served me well as an advanced editor for the past year or so, but I sometimes feel so lost in its sea of features and a never-ending config file that I often end up saying to myself "If I only I could take the time to learn lisp maybe I could <i>really</i> start using emacs that way it should be used", nevertheless, learning vim versus learning lisp is certainly more cost-effective for my time.
评论 #740732 未加载
10renalmost 16 years ago
tab completion also works for help: it cycles through all help keywords that contain the present text (not just suffixes, as in normal tab-completion). eg. try<p><pre><code> :he lvis </code></pre> and press tab.<p>I like the inline arithmetic:<p><pre><code> CTRL-R=5*5 </code></pre> Note the "=" comes first. I just discovered that "CTRL-R5" inserts that line from your cut-and-paste history (or something).
评论 #740776 未加载
psadauskasalmost 16 years ago
Wow, I didn't know about several of these. Thanks for this!
321abcalmost 16 years ago
This is just the tip of the iceberg.