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

前端 未结 8 1216
遥遥无期
遥遥无期 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:26

    The other solutions are good. You can also try...

    :1,$s/^"\(\w\+\)"/\1/gc

    For more Vim regex help also see http://vim.wikia.com/wiki/Search_patterns.

提交回复
热议问题