IntelliJ IdeaVim supports vim-surround features now. But how can I quickly surround a line with parentheses in IntelliJ using IdeaVim? I can do this using yss)
or yssb
in Vim using the surround plugin. Currently I have to use ^
to go the beginning of the current line, and then use ys$)
to surround it with parentheses.
Asked
Active
Viewed 5,432 times
16

Ben
- 53
- 9

Benjamin Du
- 1,391
- 1
- 17
- 25
2 Answers
2
This issue is fixed IdeaVim 2.2.0. yss
commands are now working correctly if you upgrade to this version
see this discussion

PhilVarg
- 4,762
- 2
- 19
- 37
-
needs IntelliJ 2023.1 – törzsmókus Aug 11 '23 at 13:10
1
use vim surround surround Setup: set surround Emulates vim-surround Commands: ys, cs, ds, S see https://github.com/JetBrains/ideavim/wiki/Emulated-plugins

Marek J
- 1,364
- 8
- 18
- 33

wonders aplaceof
- 59
- 6