Vim Commands

Unlike other editors, Vim has different modes. It starts in Normal mode, in which typed chars are interpreted as commands. Pressing 'i' or 'Insert', enter Vim in insert mode, from which you can type anything. To exit insert mode, just press 'Escape'. Something like that, here is some useful commands for VIM editor.

Vim Visual Mode


Smart movements

Smart Finding and Replacing

# bad
arr =
hash =

# good
arr = []
hash = {}

Quick editing commands

Combining Commands


Useful Programmer Commands


Write File Readonly

Macro Recording