Replacing quote marks around strings in Vim?

前端 未结 8 1571
遇见更好的自我
遇见更好的自我 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:58

    unless i'm missing something, wouldn't s/\'/"/g work?

    0 讨论(0)
  • 2021-01-30 11:59

    Presuming you want to do this on an entire file ...

    N Mode:

    ggvG$ [SHIFT+:]  
    

    X Mode:

    '<,'>/'/" [RET]
    
    0 讨论(0)
提交回复
热议问题