vim 命令

:%s/src/dest/gc  subsititute 

:1, $ d               delete

:/name ?name   up->down down->up find

:wq!          save &quit

 

dd | 3dd  delete a or many line

yy | 3yy copy many line

y | yw   copy one charater or one word

xx          delete charater 

dw   delete word

db     delete backword

d$         delete cursor to line end

p can paste the content just use d (dd, 3dd, dw, db...) to delete

u       undo

 

 vim 键盘

posted @ 2015-05-12 17:43  苍术厚朴  阅读(216)  评论(0编辑  收藏  举报