Ideavim Folding and Expanding Code Blocks

What is the key binding for folding and expanding code blocks in ideavim plugin ?

( za works in vrapper for eclipse, but not in ideavim)

+4
source share
2 answers

source: ideavim help: fold

zo Open once under the cursor. When the score is counted, this many folds will open deep. In visual mode, one level of folds opens for all lines in the selected area.

zc . ,                .                .                "foldenable" .

zM : "foldlevel" 0.                "foldenable" .

zR . "foldlevel" .

+9

~/.ideavimrc zO zC, :

nnoremap zC :action CollapseRegionRecursively<CR>
nnoremap zO :action ExpandRegionRecursively<CR>

, vim, PyCharm IdeaVim. (HT: https://github.com/JetBrains/ideavim/pull/97)

+2

Source: https://habr.com/ru/post/1547140/


All Articles