Vim
74 commands in this category.
DISTRIBUTION:
$
Move to the end of a line.
/pattern
Search forward for pattern.
0
Go to the start of the line.
:%s/old/new/g
Replace all occurrences of "old" with "new" in the entire file.
:%s/old/new/gc
Replace all occurrences of "old" with "new" in the file, prompting for confirmation before each replacement.
:bd
Close a file.
:bnext
Go to the next buffer.
:bprev
Go to the previous buffer.
:close
Close current pane.
:e file
Open a file in a new buffer.
:help keyword
Display help for keyword.
:noh
Disable search match highlighting.
:o file
Open file.
:q
Exit (fails if there are unsaved changes).
:q!
Exit without saving changes.
:qa
Exit all (fails if there are unsaved changes).
:saveas file
Save file as.
:split
Open split buffers.
:tabclose
Close the active tab.
:tabdo command
Run the command on all tabs (e.g., `:tabdo q` - closes all opened tabs).
:tabnew file
Open a file in a new tab.
:tabnext
Move to the next tab.
:tabonly
Close all other tabs.
:tabprev
Switch to the previous tab.
:vsplit
Split open buffers horizontally.
:w sudo tee %
Write out the current file using `sudo`.
:wq
Write (save) and exit.
?pattern
Search backward for pattern.
^
Move to the first non-blank character on the line.
a
Insert (append) after the cursor.
A
Insert (append) at the end of the line.
ab
A block with ().
aB
A block with {}.
aw
Highlight a term.
b
Jump to the start of a word.
B
Jump to the start of a word (words with punctuation).
c
Modify the whole line.
cb
Change (replace) to the beginning of the word.
ce
Modify (replace) to the end of the word.
Ctrl+r
Sure, please provide the text you'd like translated again.
Ctrl+v
Enter visual block mode.
Ctrl+w q
Close a window.
Ctrl+w s
Split view.
Ctrl+w T
Move the current split window to its own tab.
Ctrl+w v
Split window vertically.
Ctrl+w w
Switch windows.
d$
Delete to the end of the line.
d0
Delete to the beginning of the line.
d2d
Delete (cut) 2 lines.
dw
Remove term.
ea
Add (append) to the end of the word.
G
Go to the end of the document.
gg
Go to the first line of the document.
gt
Move to the next tab.
gT
Move to the previous tab.
h
Move cursor left.
i
Insert before the cursor.
ib
Inner block with ().
iB
Inner block with {}.
j
Move cursor down.
k
Move cursor up.
l
Move cursor to the right.
n
Repeat search in same direction.
N
Repeat search in opposite direction.
p
Put (paste) the clipboard after cursor.
P
Put (paste) before cursor.
r
Change one letter.
u
Undo.
v
Start visual mode, mark lines, then do a command (like y-yank).
V
Start linewise visual mode.
W
Jump to the start of the next word (words with punctuation).
x
Delete (cut) character.
y2y
Copy 2 lines.
yy
Copy a line.