Viper Package
Actions
Status |
Command |
Description |
Notes |
✅ |
⏹ a |
Append text after the cursor |
|
✅ |
⏹ A |
Append text at the end of the line |
|
✅ |
⏹ i |
Insert text before the cursor |
|
✅ |
⏹ I |
Insert text before the first non-blank in the line |
|
✅ |
⏹ o |
Open a new line below the current line |
|
✅ |
⏹ O |
Open a new line above the current line |
|
✅ |
🔢 x |
Delete N characters under and after the cursor |
|
✅ |
🔢 X |
Delete N characters before the cursor |
|
✅ |
⏹ {visual}d |
Delete the highlighted text |
|
✅ |
⏹ D |
Delete to the end of the line |
|
✅ |
🔢 dd |
Delete N lines |
|
✅ |
⏹ {visual}y |
Yank the highlighted text |
|
✅ |
🔢 yy |
Copy N lines |
|
✅ |
🔢 p |
Put a register after the cursor position (N times) |
|
✅ |
🔢 P |
Put a register before the cursor position (N times) |
|
✅ |
🔢 r{char} |
Replace N characters with {char} |
|
✅ |
⏹ {visual}c |
Change the highlighted text |
|
✅ |
🔢 cc |
Change N lines |
|
✅ |
⏹ v |
Start/stop highlighting characters |
|
✅ |
⏹ V |
Start/stop highlighting linewise |
|
✅ |
⏹ zt |
Current line at top of window |
|
✅ |
⏹ zz |
Current line at center of window |
|
✅ |
⏹ zb |
Current line at bottom of window |
|
Motions
Status |
Command |
Description |
Notes |
✅ |
🔢 h |
Left |
left , backspace |
✅ |
🔢 j |
Down N lines |
down , enter |
✅ |
🔢 k |
Up N lines |
up , shift+enter |
✅ |
🔢 l |
Right |
right , space |
✅ |
⏹️ 0 |
To the first character in the line |
home |
✅ |
⏹ ^ |
To the first non-blank character in the line |
|
✅ |
⏹ $ |
To the last character in the line |
end |
✅ |
🔢 gg |
Go to the first line |
ctrl+home |
✅ |
🔢 G |
Go to the last line |
ctrl+end |
✅ |
🔢 \| |
To column N |
|
✅ |
🔢 w |
N words forward |
|
✅ |
🔢 W |
Move forward to the start of the next case word segment |
|
✅ |
🔢 e |
N words forward to the end of the N th word |
|
✅ |
🔢 E |
Move forward to the end of the next case word segment |
|
✅ |
🔢 b |
N words backward |
|
✅ |
🔢 B |
Move backward to the start of the previous case word segment |
|
✅ |
⏹ H |
Go to the top line in the window |
|
✅ |
⏹ M |
Go to the middle line in the window |
|
✅ |
⏹ L |
Go to the bottom line in the window |
|
✅ |
🔢 f{char} |
To the N th occurrence of {char} to the right |
|
✅ |
🔢 F{char} |
To the N th occurrence of {char} to the left |
|
✅ |
🔢 t{char} |
Till before the N th occurrence of {char} to the right |
|
✅ |
🔢 T{char} |
Till before the N th occurrence of {char} to the left |
|
Operators
Status |
Command |
Description |
Notes |
✅ |
🔢 d{motion} |
Delete the text that is moved over with {motion} |
|
✅ |
🔢 c{motion} |
Change the text that is moved over with {motion} |
|
✅ |
🔢 v{motion} |
Select the text that is moved over with {motion} |
|
Ranges
Status |
Command |
Description |
Notes |
✅ |
h |
Character to the left of the cursor |
|
✅ |
j |
Current line and the line below |
|
✅ |
k |
Current line and the line above |
|
✅ |
l |
Character under the cursor |
|
❎ |
w |
From the cursor to beginning of the next word |
|
❎ |
e |
From the cursor to end of the next word |
|
❎ |
b |
From the cursor to beginning of the previous word |
|
❎ |
iw |
Word under the cursor |
|
❎ |
i{bracket} |
Inside the matching brackets |
|
❎ |
it |
Inside HTML tag |
|
❎ |
aw |
Word under the cursor and whitespace after |
|
❎ |
a{bracket} |
Outside the matching brackets |
|
❎ |
at |
Outside HTML tag |
|
❎ |
f{char} |
Character under the cursor |
|
❎ |
F{char} |
Character under the cursor |
|
❎ |
t{char} |
Character under the cursor |
|
❎ |
T{char} |
Character under the cursor |
|
| |