vi/vim实用命令

查找

n是下一个,N是上一个

撤销和重做

u:撤销上一步的操作

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

替换

:1,$ s/aaa/bbb/g

原文地址:https://www.cnblogs.com/starof/p/4698812.html