How to remove quotes surrounding the first two columns in Vim?

前端 未结 8 1221
遥遥无期
遥遥无期 2020-12-15 21:53

Say I have the following style of lines in a text file:

\"12\" \"34\" \"some text     \"
\"56\" \"78\" \"some more text\"
.
.
.
etc.

I want

8条回答
  •  爱一瞬间的悲伤
    2020-12-15 22:20

    You could also create a macro (q) that deletes the quotes and then drops down to the next line. Then you can run it a bunch of times by telling vi how many times to execute it. So if you store the macro to say the letter m, then you can run 100@m and it will delete the quotes for 100 lines. For some more information on macros:

    http://vim.wikia.com/wiki/Macros

提交回复
热议问题