16

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.

Ben
  • 53
  • 9
Benjamin Du
  • 1,391
  • 1
  • 17
  • 25

2 Answers2

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
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