Cheatsheet of some of the more useful vim commands I have run into lately:
ci(, ci{, ci<, ci", ci'
– Delete and insert into text between (, {, <, “, etc.. brackets. Really useful for things like function arguments and quoted text.ca(, ca{, ca<, etc...
- Same as above but removed the "bracket" as well.
yi(, di{, va<, ..
ZZ
– Quick same/close, works the same as :x.*
– Search for word under the cursor.gv
– Re-select previous selection blockq<letter>
& @<same letter>
– Record a macro with q (named letter) and play it back with @.