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.

130+ essential vim commands

1 pointsby pauljonasalmost 12 years ago

1 comment

johncoltranealmost 12 years ago
MOVING IN THE FILE<p><pre><code> G moves the cursor to the end of the file L moves the cursor to the last visible line (H for the first visible line and M for the middle one) </code></pre> CASE<p><pre><code> vEU should probably be veU since I see no mention of WORD vs word in the article. Similarly, vE~ should probably be ve~. Also, those commands only change the case from the cursor to the end of the word which may not be what we want and is not what the description says. viwU and viwu are more correct. There&#x27;s also a consistency issue. If we are going with Vx: g~~ should be V~ If we are going with gxx: Vu should be guu VU should be gUU veU should be gUiw ve~ should be g~iw </code></pre> FILE EXPLORER<p><pre><code> :Vex is probably easier to remember than :Sex! </code></pre> INTERACT WITH UNIX<p><pre><code> Adding &lt;C-z&gt; would be useful. </code></pre> TABS<p><pre><code> gT shows previous tab 1gt is quicker than :tabfirst 0gt is quicker than :tablast </code></pre> WINDOW SPLITTING<p><pre><code> :nly should be :only </code></pre> AUTO-COMPLETION<p><pre><code> The title should be COMPLETION as there&#x27;s nothing automatic with it. It should mention Ctrl+x Ctrl+o, too. </code></pre> TEXT INDENT<p><pre><code> = is &quot;format&quot; not &quot;indent&quot;. Those two lines should go into the ALIGNMENT part which should probably be renamed FORMATTING. Consistency issue: 1GVG= should use gg instead of 1G. gg=G is shorter, anyway.</code></pre>