Vim
w = go to the next word
b = go the the word before
G = go to the end of file
G<number> = go to the number
gg = go to the beginning of the file
r = replace the char under the cursor
dw = delete from cursor to end of word
d$ oder D = delete from cursor to end of the line
d0 = delete from cursor to beginning of the line
dd = delete current line
b = go the the word before
G = go to the end of file
G<number> = go to the number
gg = go to the beginning of the file
r = replace the char under the cursor
dw = delete from cursor to end of word
d$ oder D = delete from cursor to end of the line
d0 = delete from cursor to beginning of the line
dd = delete current line
dd = delete from current line the next lines
dG = delete from current line to end of file
d1G = delete from cursor to the beginning of the file
I = Enter insert mode at first non-blank character
S = Delete line and begin insert at beginning of same line
o = Enter insert mode and create a new line below
O = Enter insert mode and create a new line above
C = Delete from cursor to end of line and beginn insert
^ = First non-blank character of the line
g* = Searched unde the cursor forward (unbounded)
dG = delete from current line to end of file
d1G = delete from cursor to the beginning of the file
I = Enter insert mode at first non-blank character
S = Delete line and begin insert at beginning of same line
o = Enter insert mode and create a new line below
O = Enter insert mode and create a new line above
C = Delete from cursor to end of line and beginn insert
^ = First non-blank character of the line
Search
* = Serached under the cursor - forward (bounded)g* = Searched unde the cursor forward (unbounded)
Search and replace
1 | :%s/OLD/NEW/g |
Keine Kommentare:
Kommentar veröffentlichen