Unearthing the Treasure Trove of Vim: A Guide to the Most Obscure and Useless Commands in the Land of the Text Editor

« Back to posts

I saw some Vim commands that would really help me out to remember.

Scope with ({["

Chain these commands with a symbol to change within a scope.

i - inside scope - exclusive inner match

Match all text inside brackets / symbols.

a - scope to matching symbol - inclusive inner match

Similar to i, but also selects the matching brackets / symbols.

In the above examples, p can be replaced with any vim object. A word, ”, ’, (, {, [, etc. And a command can be chained at the beginning:

g - jump to

Misc

I use ciw for replacing words all the time already, but I didn’t know I could select stuff from within a bigger scope. That will be really useful.

I think none of these are particularly useful for me except maybe ZZ. I still have a habit of :wq

While in insert mode enter C-k to insert a special character.

Use :digraph to see a chart of special characters and their key combinations.

Back to top