Monday, November 22, 2010

Vim Command Reference

Basics
:e filenameOpen filename for edition
:wSave file
:qExit Vim
:w!Exit Vim without saving
Search
Replace
Case
Read/Write files
File explorer
Interact with Unix
Alignment
Tabs
Window splitting
Auto-completion
Mark
Abbreviations
Text indent
:set autoindentTurn on auto-indent
:set smartindentTurn on intelligent aotu-indent
:set shiftwidth=4Define 4 spaces as indent size
ctrl-t, ctrl-dIndent/un-indent in insert mode
>>Indent
<<Un-indent
Syntax highlighting