VI/VIM 단축 키

      
                              
h ^h                           
j ^j ^n                     
k ^p                         
l                               
G                                 
nG                             n 
w                                 
W                                 ,      
b                                 
B                                 ,      
L                                 
M                                 
H                                
e                                 
E                                 ,      
(                               
)                               
{                               
}                                  
0 |                              
n|                              n 
^                                     
$                                    
+ return                           
-                                     
 
 vi     
                               
a                                
A                                
i                                
I                                 
o                                   
O                                   
:r file                      file  ,       
:nr file                     file  ,    n  
escape                         
^v char                       char     ,          
 
 vi     
                               
x                                ,   x            
nx                                 n   
X                                ,   X            
nX                                 n   
dw                                
ndw                                n  
dG                          ,      
dd                           
ndd                                
db                               
ndb                                n 
:n,md                      m       n 
d d$                             
dcursor_command                  , dG              
^h backspace               ,       
^w                          ,      
 
  vi  
                   
                               
rchar                     char      
R text escape             text          Esc 
stext escape              text      
S cctext escape          text    
cwtext escape                  text
Ctext escape                      text
cG escape                        
ccursor_cmd text escape                   text
 
 vi      
                                  
/text                            text
?text                            text
n                                 
N                                 
ftext                            text
Ftext                            text
ttext                            text,       text      
Ttext                            text,       text      
:set ic                          
:set noic                         
:s/oldtext/newtext        newtext  oldtext
:m,ns/oldtext/newtext     m   n, newtext  oldtext
&                             :s  
:g/text1/s/text2/text3       text1  , text3  text2
:g/text/command               text    command      
:v/text/command                text    command      
 
 vi     
                               
yy                                     
nyy                       n           
p                                       
P                                       
dsfsd "(a-z)nyy            n                 ,  n     
"(a-z)ndd                  n                 ,  n     
"(a-z)p                                         
"(a-z)P                                         
 
 vi      
                               
u                                
U                                  
.                                
,                                   f、F、t T    
;                             f、F、t T    
"np                           n    (               ,   9)
n                             / ?    
N                                  / ?  
 
       vi
                              /     
:w                               vi
:w file                        file     vi
:wq ZZ :x                     vi
:q!                           ,  vi
:e!                            ,            
 
vi    
                             
:set all                       
:set nooption              option  
:set nu                         
:set showmode                         
:set noic                        
:set list                     (^I)     
:set ts=8                       tab stops
:set window=n                    n 
 
vi   
                             
:.=                              
:=                               
^g                            、     、               
:l                           "l"          ,        
 
             
                             
{                              {       
[[                               
]]                                    
m(a-z)                               ,  mz    z
'(a-z)                              ,  'z     z
 
 vi    
                             
J                                     
nJ                           n 
 
         
                             
H                                   
nH                                    n 
M                                   
L                                   
nL                                    n 
^e(ctrl+e)                      
^y                              
^u                              
^d                              
^b                              
^f                              
^l                           
z-return                            
nz-return                       n        
z.                                  
nz.                             n        
z-                                  
nz-                             n        
 
vi  shell    
                             
:!command                  shell command  , :!ls
:!!                           shell  
:r!command                 command        , :r!ls    ls,      
:w!command                         command          command  , :w!grep all
:cd directory                      directory      
:sh                            shell,  ^d(ctrl+d)  vi
:so file                  shell  file        
 
vi      
(          ,      K、V、g、q、v、*、=    )
                             
:map key command_seq             command_seq, :map e ea,         e             
:map                                  
:umap key                      
:ab string1 string2            ,     string1 , string2  string1。       ,  string1   Esc ,      string2
:ab                            
:una string                string   
 
 vi     
                             
^i(ctrl+i) tab               ,       ,           
:set ai                        
:set sw=n                        n   
n<<                       n          
n>>                       n          ,  3>>                     

좋은 웹페이지 즐겨찾기