Vim
74 Befehle in dieser Kategorie.
DISTRIBUTION:
$
Go 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 old with new throughout file.
:%s/old/new/gc
Replace all old with new throughout file with confirmations.
:bd
Delete a buffer (close a file).
:bnext
Go to the next buffer.
:bprev
Go to the previous buffer.
:close
Close current pane.
:e file
Edit a file in a new buffer.
:help keyword
Open help for keyword.
:noh
Remove highlighting of search matches.
:o file
Open file.
:q
Quit (fails if there are unsaved changes).
:q!
Quit and throw away unsaved changes.
:qa
Quit all (fails if there are unsaved changes).
:saveas file
Save file as.
:split
Split open buffers.
:tabclose
Close the current 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 tabs except for the current one.
:tabprev
Move to the previous tab.
:vsplit
Split open buffers vertically.
:w sudo tee %
Write out the current file using sudo.
:wq
Write (save) and quit.
?pattern
Search backward for pattern.
^
Go to the first non-blank character of 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
Mark a word.
b
Jump to the start of a word.
B
Jump to the start of a word (words with punctuation).
c
Change (replace) entire line.
cb
Change (replace) to the start of the word.
ce
Change (replace) to the end of the word.
Ctrl+r
Redo.
Ctrl+v
Start visual block mode.
Ctrl+w q
Quit a window.
Ctrl+w s
Split window.
Ctrl+w T
Move the current split window into 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
Delete word.
ea
Insert (append) at the end of the word.
G
Jump to the last line of the document.
gg
Jump 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 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
Replace a single character.
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
Yank (copy) 2 lines.
yy
Yank (copy) a line.