vi/vim实用命令

查找

n是下一个,N是上一个

撤销和重做

u:撤销上一步的操作

ctrl+r:恢复上一步被撤销的操作

替换

:1,$ s/aaa/bbb/g

posted @ 2015-08-24 11:13  starof  阅读(461)  评论(0编辑  收藏  举报