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

前端 未结 16 889
余生分开走
余生分开走 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:23

    Visual mode map example to add single quotes around a selected block of text:

    :vnoremap qq `>a'`
    

提交回复
热议问题