Refactoring in Vim

前端 未结 15 1966
醉梦人生
醉梦人生 2021-01-29 17:44

Of course the fact that you can refactor on IDEs is priceless for many, I hardly ever do it when I am coding but I may try to do it when editing some one else\'s source. How do

15条回答
  •  悲&欢浪女
    2021-01-29 18:30

    The CoC addon has (among other features) the ability to rename variables.

    https://github.com/neoclide/coc.nvim

    " Symbol renaming.
    nmap rn (coc-rename)
    

提交回复
热议问题