Back to discussionComment by mellavora[-]mellavora5 years ago2 replies#ysiwb yank-surround-in-word-brackets also does it. If you have https://github.com/tpope/vim-surround/ installed.Fellshard5 years ago#Thanks for the translation! I'll keep that around for future reference.[-]spectramax5 years ago1 reply#Could you please explain why we use Yank here? From what I understand yank puts the surround-in-word in a register.But there is nothing surrounding the word! I thought yank was for copying and pasting stuff. I can't understand why ysiwb works :([-]gnubison5 years ago1 reply#I believe that this is just an arbitrary choice that doesn't collide with other keys and is fairly consistent with the other keybindings — cs for changing delimiters, ds for deleting delimiters, and ys for creating delimiters.spectramax5 years ago#Thanks! That's really thorny. It goes against the grain of composability and logically destructuring the command into verbs and actions and modifiers.They should not overload y for yank. Choose anything else that's not used.
mellavora5 years ago2 replies#ysiwb yank-surround-in-word-brackets also does it. If you have https://github.com/tpope/vim-surround/ installed.
spectramax5 years ago1 reply#Could you please explain why we use Yank here? From what I understand yank puts the surround-in-word in a register.But there is nothing surrounding the word! I thought yank was for copying and pasting stuff. I can't understand why ysiwb works :(
gnubison5 years ago1 reply#I believe that this is just an arbitrary choice that doesn't collide with other keys and is fairly consistent with the other keybindings — cs for changing delimiters, ds for deleting delimiters, and ys for creating delimiters.
spectramax5 years ago#Thanks! That's really thorny. It goes against the grain of composability and logically destructuring the command into verbs and actions and modifiers.They should not overload y for yank. Choose anything else that's not used.
But there is nothing surrounding the word! I thought yank was for copying and pasting stuff. I can't understand why ysiwb works :(
They should not overload y for yank. Choose anything else that's not used.