본문 바로가기

소프트웨어/Linux/Device Driver

Vi Command

vi command- mansung
i -> insert at prompt
I -> insert at line of prompt (head)
a -> append nextr prompt
A -> append end of prompt
dw -> delete word
3dw -> delete 3 word
dd -> delete line
d$ -> delete line after prompt
:2,3d -> delete line of 2,3
x -> delete at prompt
2x -> delete two word
:wq -> save end
:q! -> no save end
o -> appen new line
shift+tab -> (no vi) auto file complete
h,j,k,l -> left up down right
3G -> move to line of 3
-,+ -> move line to upper, to bo
ctrl+b,ctrl+f -> back page, front page
G -> end of page end of line
/'search keyword/ -> search after prompt
e -> move to next word end of char
b -> move back word first/last
w -> move to next word first of char
$ -> move to end of line of curr prompt