开发者

How to replace NUL in vi?

开发者 https://www.devze.com 2023-02-28 19:12 出处:网络
I have a NUL character in my text file. (If I do \'ga\' on that character it prints NUL.) How do I replace this character with something else?

I have a NUL character in my text file. (If I do 'ga' on that character it prints NUL.) How do I replace this character with something else?

I am usi开发者_如何学Cng GVIM on Windows.


:%s/[\x0]//g

http://vim.1045645.n5.nabble.com/search-for-null-td1194026.html


:s/\x0//g should do the work.

0

精彩评论

暂无评论...
验证码 换一张
取 消