I wrote some text in vi editor,such as
xxx
xxx.g/gasd/ga
gasdj\gqweg/fsda
fg-cgdohd
now I want to replace the "/g" to "abc" how to escape it I wrote
:%s/'/g'/abc/g
in command line,it's no working,how to do it?
您可以在搜索和替换中使用任何字符,而不仅仅是斜线:
%s:/g:abc:g
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.