Replacing quote marks around strings in Vim?

前端 未结 8 1569
遇见更好的自我
遇见更好的自我 2021-01-30 11:09

I have something akin to and need to change the single quotation marks to double quotation marks. I tried :s/\\\'.*\\\'/\

8条回答
  •  囚心锁ツ
    2021-01-30 11:33

    There's also surround.vim, if you're looking to do this fairly often. You'd use cs'" to change surrounding quotes.

提交回复
热议问题