[surround]: Visual mode surround issues #1765
-
Contributing guidelines
Module(s)mini.surround QuestionHi there !! I came up with the following autocmd(with some assistance from copilot 😀) to move to the line where I start the visual selection, however with this in place when I visually select and do
I do understand this isn't mini.surround issue and definitly skill issue on my end on not being able to fix this, so just looking for some help here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, because there is an explicit
I don't really understand the use case here. With visual selection cursor can be either at start or end of visual selection. You can navigate between them with Anyway, this is indeed not a 'mini.surround' issue as it works as expected here. |
Beta Was this translation helpful? Give feedback.
Yes, because there is an explicit
send_keys("`>")
which gets executed after pressingsa
(as it internally leads to the mode change). As 'mini.surround' expects aftersa
a surrounding identifier, it treats`
(first key ofsend_keys()
) as such identifier and surrounds selection with it.I don't really understand the use case here. With visual selection cursor can be eith…