DEV Community

Discussion on: How to get better at vim?

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Most important things to force yourself to do:

  • Spend as little time as possible in insert mode. Use it literally only for inserting.
  • Use HJKL for movement.
  • Use all 3 visual modes; they all have their purpose.
  • Use the :s command and q-macros whenever possible.

Also, if you catch yourself doing something wrong, don't just think "I'll do it the vim way next time", actually undo your changes and do it right to train yourself.

Once these basics become reflexes, you'll find yourself looking for alternatives to do things faster. Starting to use w and b will be a natural step and the more :s you use the more comfortable you will be with regular expressions.