Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Want to learn vim and make it stick?

0. Learn the basic movements and UI interactions. Do NOT use the arrow keys. Your future self will thank you tremendously.

1. Search DuckDuckGo for "vim cheatsheet" and find one that provides a good summary of commands thats organized to your liking.

2. Print it out and post it somewhere easily accessible to your working space.

3. Each-ish day, review the cheatsheet a bit and pick one one new kind of command that looks useful. Try to integrate that command into your workflow throughout the day. It'll be clumsy at first, but after you do it a few times you'll be surprised at how much faster this gets.

Focus on movement and editing first. Take note of sequences that seem to take a lot of work, as almost guaranteed there is a faster way you can integrate in later.

Once you've got a small core built up, do another review and research more specialized topics:

- .vimrc, colors, and customization

- plugins

- buffers, windows, etc for quick workspace organization

- macros ... and macros within macros!

- visual blocks

- various useful commands for advanced editing (e.g. regex based find in replace in an entire doc or visual block is epic)

Give yourself time and try not to be too loud when you have your first "A ha!" moment when you randomly try a completely new key combo that you think should work and it actually does exactly what you hoped.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: