You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Reference Guide
Vim Motions & Commands
Modes
Normal mode - Navigate and manipulate text
Insert mode - Type and edit text
Visual mode - Select text
Entering Insert Mode
Key
Action
i
Insert before cursor
I
Insert at beginning of line
a
Insert after cursor
A
Insert at end of line
o
New line below and insert
O
New line above and insert
Visual Mode
Key
Action
v
Character-wise visual
V
Line-wise visual
<C-v>
Block visual
Movement
Key
Action
h j k l
Left, down, up, right
w
Next word start
b
Previous word start
e
End of word
9
Beginning of line (remapped from 0)
0
End of line (remapped from $)
gg
File start
G
File end
<C-d>
Scroll down half page
<C-u>
Scroll up half page
{
Previous paragraph
}
Next paragraph
Text Objects
Command
Action
ci{
Change inside braces
ca(
Change around parentheses
di"
Delete inside quotes
da'
Delete around single quotes
yt{
Yank until next {
dt'
Delete until next '
Operations
Key
Action
x
Delete character
d
Delete (combine with motions)
y
Yank/copy (combine with motions)
p
Paste after
P
Paste before
u
Undo
<C-r>
Redo
Search & Replace
Basic Search
/{pattern}" Search forward
?{pattern}" Search backwardn" Next matchN" Previous match*" Search word under cursor forward
#" Search word under cursor backward
Find & Replace
:%s/{search}/{replace}/g" Replace all in file
:%s/{search}/{replace}/gc" Replace all with confirmation
:{start},{end}s/{search}/{replace}/g" Replace in range
Search Settings
Our configuration includes these search enhancements:
setignorecasesmartcase" Smart case sensitivitysetincsearchhlsearch" Incremental search with highlighting