又一次搬家囉! https://blog.inndy.tw

about 5 years ago
 goto start  
     [[  
 goto end  
     ]]  
 goto 1st line  
     gg  
 goto {N} line  
     {N}G  
 goto last line  
     GG
 goto first character of line  
     0  
 goto last character of line  
     $  
 search  
     /string  
 next match  
     n  
 prev match  
     N  
 multiple {str} {N} times  
     {N}i{string} ESC  
 auto indent lines below
     =G  
 insert after  
     o  
 insert before  
     O  
 remove character  
     x  
 repeat last command  
     .
 replace {A} with {B} in line {M} to {N} ('g' stands for replace all)  
    :{M},{N}s/{A}/{B}/g  
 replace {A} with {B} in all lines
     :%s/{A}/{B}
← 前端好朋友之一些好用的網站蒐集 我的Linux Mint筆記 →
 
comments powered by Disqus