A Vim Cheatsheet

Basics

Modes

  1. Normal mode (n): used for navigation and modification (yank/delete/paste)
  2. Insert mode (i): used to insert text (e.g., write code)
  3. Visual line mode (V): used to select multiple lines
    • Visual mode (v): select at the word level

Scrolling

Editing

Searching

Marking

Splitting

Tabs

Buffers

Indenting and Folding

Cut & Paste

Session Management

Commands

Diffing

Tags

Cscope

Other Stuff

Useful Plugins

CtrlP

Fuzzy file finder and search.

Shortcuts:

Discussion