Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.
A full list of configuration options and their current settings can be found by running :options
.
Vim is a modal text editor. This means that, unlike basic editors, Vim operates in one of multiple states optimized for specific types of interaction. There are seven "basic" modes (plus seven "additional" modes).
View the modes introduction by running :h vim-modes-intro
c
- changed
- deletey
- yank into registergU
- make uppercasegu
- make lowercase>
- shift right<
- shift leftView the complete list by running :h operator
w
[count] words forward - Delimitated by non-keyword charactersW
[count] WORDS forward - Delimitated by whitespacee
forward to end of word [count]E
forward to end of WORD [count]b
- [count] words backwardB
- [count] WORDS backwardView the complete list by running :h word-motions
View the complete list by running :h object-motions
ap
- A paragraphip
- Inner paragraph<C-x><C-f>
- File completion:buffer
:b
- Edit buffer from the buffer list:find
- Find {file} in path and :edit
it:sort
- Sort lines in [range]. When no range is given all lines are sortedChange
c{motion}
- "Change" - Delete {motion} text [into register x] and start insertcc
- Delete [count] lines [into register x] and start insertC
- Delete from cursor to end of the line [into register x] and start insertDelete
d{motion}
- Delete text that {motion} moves over [into register x]dd
- Delete [count] lines [into register x] linewiseD
- Delete the characters under the cursor until the and of the lineUpper/lower case
gU{motion}
- Make motion text uppercasegu{motion}
- Make motion text lowercase{visual}U
- Make highlighted text uppercase{visual}u
- Make highlighted text lowercaseScrolling relative to cursor
zt
- Redraw, line [count] at top of windowzz
- Redraw, line [count] at center of windowzt
- Redraw, line [count] at bottom of windowEditing text
a
- Append text after the cursorA
- Append text at the end of the line