i = insert mode
esc = command mode
:w welcome.txt = write buffer ( insert mode ) to welcome.txt
1L,40c -> 1 line 40 character
:q = quit
hjkl
h= left
j= down
k= up
l= right
w = word to word
b = back to word before
W= next line
B = line before
$ = end of line
^ = beginning of line
0 = the real beginning (without spaces)
gg = end of file
G = beginning of file
{ = beginning paragraph
} = end paragraph
f a = find “a” after word in line
F a = find a before word in line
3fa = find the third “a” word
3jj = go 3 line down
:set number = show number
:6 = goto line 6
c=change
x= delete
u= undo
dw = delete word
dd = delete line
2dw = delete 2 word
cw = delete word and go insert mode
cc = dd + go insert mode
2dd = delete 2 line
2cc = delete 2 line and go inset mode
ct” = delete from cursor to “ and go insert mode
ci” = find word inside quote and change it ( almost same as ct )
ca” = find double quote and content inside it and change
ci usually used in () or {} to change content inside
d => delete / cut
p = paste content forward
P = paste content before
y = copy
yw =copy word
yy = copy entire line
p=paste
10p = 10x paste
14x = delete 14 character
p=paste
No comments:
Post a Comment