Accurate Spelling Trick with Vim
Sep 3, 2016
1 minute read

I like to code recklessly. Spelling errors aren’t uncommon when this happens. Defining variables and calling them in different places where I expect them to work and they DON’T work is a problem. There’s a command with Vim that’s handy for this situation.

Hover your Vim cursor over the variable you instantiate and SHIFT * over it. This will highlight each variable with the same variable name, one by one.


It allows you to visually see each variable and if it’s defined with accurate spelling or if you fucked up!

Back to posts

comments powered by Disqus