VI命令删除文件所有内容

>vi test.log

>gg #光标移到第一行

>:.,$d

 

posted @ 2015-07-23 13:52  Adtuu  阅读(814)  评论(0编辑  收藏  举报