Vim Anti-Patterns (2012)
&gt; Moving one line at a time<p>I either go down with arrows (I know it&#x27;s controversial), beginning of file with :1, end of file with G, line number with :[line number] or search with &#x2F;. I usually don&#x27;t have large files so this works very well (and I almost exclusively go by line number on large files).<p>&gt; Moving one character at a time<p>I use ^ for beginning of line, $ for end of line, e to move quickly in a line<p>&gt; Searching for the word under the cursor<p>Nice, didn&#x27;t know about *&#x2F;#, I just type what I&#x27;m searching, gonna use that.<p>&gt; Deleting, then inserting<p>Insert mode is fine.<p>&gt; Using the arrow keys<p>I use the arrow keys, and I don&#x27;t care about all the arrow-key shamers out there.<p>&gt; Moving in insert mode<p>I use insert mode only while editing (makes sense). I don&#x27;t get the point of this paragraph.<p>&gt; Moving to Escape<p>I&#x27;m fine with escape key.<p>&gt; Moving to the start or end of the line, then inserting<p>I much prefer just going into insert mode.<p>&gt; Entering insert mode, then opening a new line<p>I also use o quite often (as it just goes into insert mode).<p>&gt; Entering insert mode to delete text<p>Yes, I delete with dd, de, etc. (. is also useful for that), deleting in insert mode is painful for more than one character.<p>&gt; Repeating commands or searches<p>Didn&#x27;t know about q: and q&#x2F;, pretty useful, nice.<p>&gt; Repeating substitutions<p>I use %s&#x2F;for&#x2F;far&#x2F;g or %s&#x2F;for&#x2F;far&#x2F;, or for a few lines, I select them (shift-v) (visual mode) then : (which auto-sets it to :&#x27;&lt;,&#x27;&gt;) then :&#x27;&lt;,&#x27;&gt;s&#x2F;for&#x2F;far&#x2F; for instance.<p>Anyway, been using vim for ~5 years with a pretty light .vimrc and one thing I would recommend is bogado&#x2F;file-line plugin which lets you open a file at a line, e.g. vim app&#x2F;models&#x2F;user.rb:48<p>My vimrc if anyone is curious: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;localhostdotdev&#x2F;aa25d1c81f3f3b67ac35eccf1692f251" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;localhostdotdev&#x2F;aa25d1c81f3f3b67ac35...</a>