Search code examples
intellij-ideavimideavimsurround

How to surround a line with parentheses in IntelliJ IdeaVim?


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.


Solution

  • This issue is fixed IdeaVim 2.2.0. yss commands are now working correctly if you upgrade to this version

    see this discussion