This topic created in 5573 days ago, the information mentioned may be changed or developed.
需要弄个.vim 的插件,谁知道如何 将"abc.source"替换成adc?就像javascript一样,"abc.source".replace(".source","")
4 replies • 1970-01-01 08:00:00 +08:00
 |
|
:%s/abc.source/abc/
|
 |
|
我是要写在自动命令里的。
|
 |
|
abc是未知的,也就是我只需要将尾部的".source"替换为空就可以了
|
 |
|
sed -e 's|\.\<source\>||g' -i ${FILE}
|