gg=G
Indent all rows==
Indent current rowzz
Current line to centerzt
Current line to topzb
Current line to bottomZZ
Save and quitciw
Change wordci"
Change everything inside double quotes (Works with other characters)gd
Go to definitiongg
Go to start of the documentG
Go to end of the documentJ
Join linesgJ
Join lines without inserting space%
Jump to corresponding item ((),{},[]).
Repeat previous command*
Search for next occurance under cursor#
Search for previous occurance under cursor%
Move cursor to the first character of line$
Move cursor to the last character of linegi
Go insert mode where you were last insert modeD
Delete the rest of the linedd
Delete linezo
Open foldzc
Close foldzz
Move cursor to center of screenzt
Move cursor to top of screenzb
Move cursor to bottom of screen:jumps
Jump listCtrl-o
- Jump to backwards element in jump listCtrl-i
- Jump to forwards element in jump list{
Move to start of previous paragraph or code block.}
Move to end of next paragraph or code block.Ctrl+F
Move forward one screenful.Ctrl+B
Move backward one screenful.~
Toggle case under cursoro
Edit in a new line below the currentO
Edit in a new line above the current:r
[name] Insert the file [name] below the cursor.~
Switch case of the character under the cursor and move the cursor to the right. If a [count] is given, do that many characters.D
Delete until end of linedG
Delete until end of fileR
Go to overwriting mode (edit mode but doesn't insert text but overwrites)
-
/ search
-
? search
-
gi
insert mode where insert mode was exited last time -
gJ
lines without space -
ga
ASCII code of the character under cursor -
gf
editing the file under the cursor -
[I
Show lines with matching word under cursor -
:grep Vim *.md
and after:copen
to open grep result in quickfix
y/search<Enter>
y?search<Enter>
d/search<Enter>
d?search<Enter>
c/search<Enter>
c?search<Enter>
!sort
sort visually selected lines
inoremap jj <Esc>