aelydens

Minimum Viable Vim


These are notes from a presentation on Vim I gave at work.

Why Vim?

Vim is everywhere - it’s installed on virtually every Unix system. Even if you primarily use another editor, knowing basic Vim is invaluable for when your preferred tools aren’t available.

The Absolute Basics

Modes

Vim has two main modes you need to know:

Essential Commands

Getting in and out

Movement (in normal mode)

A Typical Workflow

  1. Open a file: vim test.txt
  2. Press i to start typing
  3. Hit ESC when done typing
  4. Type :wq to save and quit

Slightly More Advanced

Moving faster

Editing

Common Gotchas

Next Steps

Start with these basics and gradually add new commands as you get comfortable. A few suggestions for when you’re ready:

Published on: 2024-11-05