Shortcut key to indent a block of text with IdeaVim and Phpstorm

Highly Irregular picture Highly Irregular · Oct 20, 2014 · Viewed 11.9k times · Source

Without IdeaVim in PhpStorm, the tab key can be used to indent a selected block of text. However, I'm interested to know if there's a shortcut key that does the same thing with the IdeaVim plugin installed (without losing any functionality that the tab key otherwise has).

Answer

Niloct picture Niloct · Oct 20, 2014

See Indent multiple lines quickly in vi

You must be in normal mode, i.e. go Esc before indenting.

You can select a block of lines with Shift+V, then up/down arrows, then > to indent (< reverses indent).