[Linux] Vi

반응형

Vi Command Line Basic

:wq (save & quit)  
:q (quit)  
:q! (quit without save)  
:w (save)  
i (insert)  
a (insert next)  
A (insert line next)  
x (delete character)  
number +h (n\*left)  
number +j (n\*down)  
number +k (n\*up)  
number +l (n\*right)  
dd (delete the line)  
u (undo)  
Ctrl+R (redo)  
gg (go top)  
G (go bottom)  
{ (go upper block)  
} (go down block)  
. (do perivous command line)  
yy (copy)  
p (paste)  
V (visual line)  
o (insert next line)  
w/W (next word)  
b/B (before word)  
:number (go to number line)  
0 (first column of the line)  
^ (first word for the line)  
t + character (go next to the character)  
f + character (go to the character)  
% (find next {/} point)  
cw (change word)  
dw (delete word)  
ct (change until ~ )  
dt (delete until ~ )  
\* (go next same word)  
zz (go center)  
~ (chapitalize character)  
r (replace character)  
\> (indent)  
C (change line)  
dd (delete line)  
q + character (macro recording) > @character (do macro)  
d + } (delete until bottom block)  
d + { (delete until upper block)  

반응형

'Linux' 카테고리의 다른 글

[Linux] Listing Files  (0) 2021.02.06
[Linux] Shell  (0) 2021.02.06
[Linux] Directory Structure  (0) 2021.02.06
[Linux] Manual  (0) 2020.09.17
[Linux] Commands  (0) 2020.09.15

댓글

Designed by JB FACTORY