Pasting inside delimiters without using visual selection

前端 未结 5 927
轻奢々
轻奢々 2020-12-21 18:09

In Vim, let\'s say I want to replace the contents of one String with the content of another.

Original input

var1 = \"January\"
var2          


        
5条回答
  •  我在风中等你
    2020-12-21 18:36

    Excerpt from my .vimrc:

    " Delete to 'black hole' register
    nnoremap d "_d
    vnoremap d "_d
    

    So, you just need to \di"P as your last step (assuming you use \ as a ).

提交回复
热议问题