What Vim command(s) can be used to quote/unquote words?

前端 未结 16 880
余生分开走
余生分开走 2020-12-12 08:36

How can I quickly quote/unquote words and change quoting (e.g. from \' to \") in Vim? I know about the surround.vim plugin, but I would like to use

16条回答
  •  天涯浪人
    2020-12-12 09:16

    Quote a word, using single quotes

    ciw'Ctrl+r"'

    It was easier for me to do it this way

    ciw '' Esc P
    

提交回复
热议问题