Building a Habit

You now know enough Vim to do real work: modes, movement, editing, search and replace, visual selection, registers, buffers, and enough config and plugins to make it feel like yours. What’s left is repetition. This chapter is a two-week plan for turning what you’ve read into muscle memory.

Why the next two weeks matter more than this book did

Reading about dw is not the same as your hand doing it without thinking. The gap between “I understand this” and “I don’t have to think about this” only closes with repeated, deliberate use. Two weeks of actually editing files in Vim, even small ones, will do more for you than rereading any chapter here a second time.

Week one: force yourself off the crutches

  • Use Vim for anything you’d normally open in a plain text editor: notes, configs, quick scripts.
  • Ban yourself from arrow keys. Use hjkl even when it feels slower. It won’t for long.
  • Every time you reach for a mouse to select text, stop and do it with Visual mode instead.
  • When you make an edit you’ll need to repeat nearby, use . instead of redoing it manually.

Week two: build small combinations

  • Start chaining what you know: search for a word, then edit it (/word then cw). Yank a block with V and a motion, then paste it elsewhere.
  • Try editing an actual code file if you have one, even a small one. Vim feels different once there’s real syntax and structure to move through.
  • Pick one thing from your .vimrc that still bugs you, and either fix it or accept it as a known trade-off.

What to do when you get stuck

Two habits will get you unstuck faster than searching the internet for most beginner questions:

  • :help topic opens Vim’s built-in help for almost anything, and it’s usually more precise than a random blog post.
  • Esc, still, always, is your reset button when you’re not sure what mode you’re in or what just happened.

After two weeks

You won’t know everything, and you’re not supposed to yet. Macros, scripting your own commands, advanced regex, and deeper plugin configuration are all still ahead of you, and none of them are urgent. What you’ll have after two weeks is the thing that actually mattered: Vim stops feeling like an obstacle between you and your text, and starts feeling like an extension of it.

Try it

There’s no single exercise for this chapter. The exercise is the next two weeks. Keep the appendix cheat sheet open in a tab, and use Vim for real work instead of toy files starting today.

← Plugins 101