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
Describe the bug
Vim Surround add doesn't work how it should: the closing part ends up where the cursor started, not where it should end according to the surround logic. Additionally, there are spaces inserted, which shouldn't be the case.
To Reproduce
Cursor starts on c of (abcdefg)
Press: ys({
Actual Behaviour { (ab }cdefg
Expected behavior {(abcdefg)}
Screenshots
Environment (please complete the following information):
Extension (VsCodeVim) version: 1.18.5
VS Code Version: 1.52.1 (user setup)
OS: Windows_NT x64 10.0.18363
The text was updated successfully, but these errors were encountered:
Osi-Schicht 8 Fehler ;-)
Probier es mit: ysa(}
Für die Klammer musst du das textobject a( angeben. Der whitespace bei "{" ist ein feature, "}" macht ohne space.
For some reason I didn't find surround's proper documentation, it wasn't referenced in the Github readme so I opened an issue over there: tpope/vim-surround#321 (comment)
Could you possibly explain what happens in the case of input of ys(}? Is it undefined behaviour according to surround.vim docs? The ( without preceding i or a stops it from being a text object. So what is it? A text motion to the beginning of the paragraph, right?
Describe the bug
Vim Surround add doesn't work how it should: the closing part ends up where the cursor started, not where it should end according to the surround logic. Additionally, there are spaces inserted, which shouldn't be the case.
To Reproduce
c
of(abcdefg)
ys({
Actual Behaviour
{ (ab }cdefg
Expected behavior
{(abcdefg)}
Screenshots

Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: