Common Vim Commands: Reference and Examples

Last updated:

WIP Alert This is a work in progress. Current information is correct but more content will probably be added in the future.

Unless otherwise specified, all commands are to be added in Command Mode

Search and Replace

:%s/foo/bar/g

Case-insensitive Search and Replace

:%s/foo/bar/gi

Go to the top, beginning of the file

gg

Go to the bottom, end of file

G

Useful Links

Dialogue & Discussion