- Copy and paste
- Text objects
- Navigating through code
- Buffer
:help <term>
- open Vim's help:e <path>
- edit a file:w
- save the current file:q
- quit the current window:x
- equivalent to:wq
h
- leftj
- downk
- upl
- right0
- the start of the line$
- the end of the linef<char>
- next occurence of<char>
on current lineF<char>
- previous occurence of<char>
on current linet<char>
- left off<char>
T<char>
- left ofF<char>
;
- repeat previous[fFtT]
,
- repeat previous[fFtT]
backwardG
- the last line_G
- nth-line^f
- move forward a page^b
- move backward a page
w
- move forwards to the start of a wordW
- move forwards to the start of a WORDe
- move forwards to the end of a wordE
- move forwards to the end of a WORDb
- move backwards to the start of a wordB
- move backwards to the start of a WORD
%
- matching bracket{
- next paragraph}
- previous paragraph
i
- insert before the cursorI
- insert before first non-blanka
- insert after current characterA
- insert at the end of the lineo
- insert new line below the cursor and insert textO
- insert new line above the cursor and insert textx
- delete character under the cursord<motion>
- delete the text for<motion>
dd
- delete a lineD
- delete until the end of the linec<motion>
- change the text for<motion>
cc
- change the entire lineC
- change the text until the end of the line
v
- enter visual modeShift+v
- enter visual mode linewiseCtrl+v
- enter visual mode blockwise
/pattern
- search forward for pattern?pattern
- search backward for pattern//
- search forward using last pattern??
- search backward using last pattern*
- search forward for current wordn
- repeat the search in same directionN
- repeat the search in opposite directiongd
- go to local declarationgD
- go to global declaration:noh
- remove search highlighting
set clipboard+=unnamedplus
- integrate system clipboard to vimset expandtab
- automatically replaces tab to spaces on insert mode
word
- A word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white space (spaces, tabs, ). This can be changed with the 'iskeyword' option. An empty line is also considered to be a word.WORD
- A WORD consists of a sequence of non-blank characters, separated with white space. An empty line is also considered to be a WORD.