← Back to Applications List
Vim

Vim

A lightweight text editor featuring modal operation, unlocking true productivity with overwhelming editing speed once mastered

i
Insert mode
Starts character input from cursor position.
πŸ’‘ Hint: insert
I
Insert at beginning
Starts input from the beginning of the line.
πŸ’‘ Hint: Capital I for beginning
a
Append mode
Starts input after cursor position.
πŸ’‘ Hint: append
A
Append at end
Starts input from the end of the line.
πŸ’‘ Hint: Capital A for end
o
Open line below
Opens a new line below and enters insert mode.
πŸ’‘ Hint: open
O
Open line above
Opens a new line above and enters insert mode.
πŸ’‘ Hint: Capital O for above
v
Visual mode
Starts character-wise selection.
πŸ’‘ Hint: visual
V
Visual line mode
Starts line-wise selection.
πŸ’‘ Hint: Capital V for line
Ctrl+v
Visual block mode
Starts block-wise selection.
πŸ’‘ Hint: Ctrl+v for block
Esc
Normal mode
Returns to normal (command) mode.
πŸ’‘ Hint: Escape
Ctrl+[
Normal mode (Ctrl)
Same as Esc, returns to normal mode.
πŸ’‘ Hint: Ctrl+[ as Esc alternative
h
Move left
Moves cursor one character left.
πŸ’‘ Hint: h is leftmost
j
Move down
Moves cursor one line down.
πŸ’‘ Hint: j looks like down arrow
k
Move up
Moves cursor one line up.
πŸ’‘ Hint: kick up
l
Move right
Moves cursor one character right.
πŸ’‘ Hint: l is rightmost
w
Next word
Moves to the beginning of next word.
πŸ’‘ Hint: word
b
Previous word
Moves to the beginning of previous word.
πŸ’‘ Hint: backward
e
End of word
Moves to the end of current or next word.
πŸ’‘ Hint: end
0
Beginning of line
Moves to the beginning of line (column 0).
πŸ’‘ Hint: 0 is start position
^
First character of line
Moves to the first non-blank character of line.
πŸ’‘ Hint: ^ points to line start
$
End of line
Moves to the end of line.
πŸ’‘ Hint: $ represents end
g+g
Go to top
Goes to the first line of file.
πŸ’‘ Hint: go go to top
G
Go to bottom
Goes to the last line of file.
πŸ’‘ Hint: Capital G for last
f+ζ–‡ε­—
Find character
Moves to specified character in line.
πŸ’‘ Hint: find
F+ζ–‡ε­—
Find character backward
Moves backward to specified character in line.
πŸ’‘ Hint: Capital F for backward
%
Matching bracket
Moves to matching bracket.
πŸ’‘ Hint: % represents pair
Ctrl+u
Half page up
Scrolls half page up.
πŸ’‘ Hint: up
Ctrl+d
Half page down
Scrolls half page down.
πŸ’‘ Hint: down
z+z
Center cursor
Scrolls to center cursor line on screen.
πŸ’‘ Hint: zoom to center
x
Delete character
Deletes character at cursor.
πŸ’‘ Hint: extract
d+d
Delete line
Deletes the current line.
πŸ’‘ Hint: delete double
d+w
Delete word
Deletes word from cursor.
πŸ’‘ Hint: delete word
D
Delete to end
Deletes from cursor to end of line.
πŸ’‘ Hint: Capital D to end
y+y
Yank line
Copies the current line.
πŸ’‘ Hint: yank
p
Paste after
Pastes after cursor position.
πŸ’‘ Hint: paste
P
Paste before
Pastes before cursor position.
πŸ’‘ Hint: Capital P for before
u
Undo
Undoes the last operation.
πŸ’‘ Hint: undo
Ctrl+r
Redo
Redoes the undone operation.
πŸ’‘ Hint: redo
.
Repeat command
Repeats the last change command.
πŸ’‘ Hint: Period for repeat
r+ζ–‡ε­—
Replace character
Replaces character at cursor.
πŸ’‘ Hint: replace
R
Replace mode
Enters replace mode to overwrite text.
πŸ’‘ Hint: Capital R for replace mode
J
Join lines
Joins current line with next line.
πŸ’‘ Hint: Join
>+>
Indent
Indents the current line.
πŸ’‘ Hint: > shifts right
<+<
Outdent
Outdents the current line.
πŸ’‘ Hint: < shifts left
~
Toggle case
Toggles case of character at cursor.
πŸ’‘ Hint: ~ (tilde) toggles
/
Search forward
Searches forward in file.
πŸ’‘ Hint: / is search slash
?
Search backward
Searches backward in file.
πŸ’‘ Hint: ? for reverse search
n
Next search result
Goes to next search result.
πŸ’‘ Hint: next
N
Previous search result
Goes to previous search result.
πŸ’‘ Hint: Capital N for previous
*
Search word under cursor
Searches forward for word under cursor.
πŸ’‘ Hint: * for highlight search
#
Search word backward
Searches backward for word under cursor.
πŸ’‘ Hint: # for backward search
:+w
Save file
Saves the current file.
πŸ’‘ Hint: write
:+q
Quit
Quits Vim (fails if there are unsaved changes).
πŸ’‘ Hint: quit
:+q+!
Force quit
Quits Vim discarding changes.
πŸ’‘ Hint: quit + ! to force
:+w+q
Save and quit
Saves file and quits Vim.
πŸ’‘ Hint: write quit
Z+Z
Save and quit (ZZ)
Saves file and quits Vim (no command mode needed).
πŸ’‘ Hint: ZZ for quick exit
:+e+ +フゑむル名
Edit file
Opens specified file.
πŸ’‘ Hint: edit
:+%+s+/+前+/+後+/+g
Substitute all
Substitutes text in entire file.
πŸ’‘ Hint: substitute
:+ζ•°ε­—
Go to line
Goes to specified line number.
πŸ’‘ Hint: :line number to go
Ctrl+a
Increment number
Increments number at cursor by 1.
πŸ’‘ Hint: add
Ctrl+x
Decrement number
Decrements number at cursor by 1.
πŸ’‘ Hint: extract
:+!+γ‚³γƒžγƒ³γƒ‰
Execute command
Executes shell command.
πŸ’‘ Hint: ! for external
q+ζ–‡ε­—
Record macro
Starts recording macro to specified letter.
πŸ’‘ Hint: q to record
q
Stop recording
Stops recording macro.
πŸ’‘ Hint: q to stop
@+ζ–‡ε­—
Play macro
Plays macro recorded to specified letter.
πŸ’‘ Hint: @ to play
:+s+p+l+i+t
Split horizontal
Splits window horizontally.
πŸ’‘ Hint: split
:+v+s+p+l+i+t
Split vertical
Splits window vertically.
πŸ’‘ Hint: vertical split
Ctrl+w+h
Window left
Moves to left window.
πŸ’‘ Hint: window + h (left)
Ctrl+w+l
Window right
Moves to right window.
πŸ’‘ Hint: window + l (right)