You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many implementations of surround plugins in vim/neovim allows you to use surround commands directly with a text object. For example, ysiw" will add quotes to the current word. Currently, you need to use visual mode first, like: viwS". It's not any less efficient, but muscle memory is a hell of a drug :)
The text was updated successfully, but these errors were encountered:
Agreed; this is the one reason why I'm not using this plugin yet. "ysiw" is the most basic surround sequence, and it's not just a matter of muscle memory; it's a matter of how you think about editing. The power of vim is in the verb->object paradigm; it's how we speak and thus how I think while editing. The select-first approach is the Kakoune method, not the vim way.
General information
Basic examination
Problem description
Many implementations of surround plugins in vim/neovim allows you to use surround commands directly with a text object. For example,
ysiw"
will add quotes to the current word. Currently, you need to use visual mode first, like:viwS"
. It's not any less efficient, but muscle memory is a hell of a drug :)The text was updated successfully, but these errors were encountered: