Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 537
Benjamin Du Avatar asked Jan 25 '18 08:01

Benjamin Du


1 Answers

use vim surround surround Setup: set surround Emulates vim-surround Commands: ys, cs, ds, S see https://github.com/JetBrains/ideavim/wiki/Emulated-plugins

like image 179
wonders aplaceof Avatar answered Sep 21 '22 08:09

wonders aplaceof