Closed ranjithshegde closed 2 years ago
@ranjithshegde Would you want this feature to select the entire line? Or not including leading whitespace?
@kylechui Thanks for taking an interest in this feature!
I dont know how other users feel, but I am fairly used to vim-surround's way of handing it. It does not include leading or trailing whitespaces. So I would prefer no leading/training whitespaces. Unless you see an advantage in including them.
I've taken a look at how vim-surround
does it and it seems that tpope added a whole other keymap in order to implement the feature. I wonder if it might be better for it to be a user setting, e.g. nmap ys ^ysg_
.
Yes that works as a solution for me. Thanks.
Shall I close the issue?
I think we can close this for now, but I'll try to remember to add a list of "recommended" mappings (or something like that) to the README/wiki
@ranjithshegde Just as a heads up, I decided to add this feature as a default keybinding, so you can configure it in the setup table now!
Thank you!
Feature description
press
yss
to initiate add-surround for the current line.Feature advantages
0ys$"C-o
Goes without saying, thank you for your excellent work.