VIM对替换的数字进行计算

VIM对替换的数字进行计算

运行下面的命令

%s/sub(\([0-9]*\))/\=submatch(1)+8/g 

函数式 :s/替换字符串/\=函数式

猜你喜欢

转载自www.cnblogs.com/aiyue443/p/10570404.html