Shortcut key to indent a block of text with IdeaVim and Phpstorm
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).
See Indent multiple lines quickly in vi
You must be in normal mode, ie go Esc
before indenting.
You can select a block of lines with Shift+V
, then up/down arrows, then >
to indent ( <
reverses indent).
I think following settings are what you want! :)
Put the followings to ~/.ideavimrc
nnoremap <Tab> >>_
nnoremap <S-Tab> <<_
inoremap <S-Tab> <C-D>
vnoremap <Tab> >gv
vnoremap <S-Tab> <gv
ideavim support vimrc with .ideavimrc
also see: Is there a way to get IdeaVIM to honor the mappings from my .vimrc file?
链接地址: http://www.djcxy.com/p/28622.html上一篇: 在python GUI中缩进