The folding level is calculated by dividing the line indentation by 'shiftwidth' (rounded down). Consecutive rows with the same or higher folding level form a fold. Within it, rows with higher fold levels form nested folds.
The number of nesting levels is limited by the 'foldnestmax' option.
Okay.
/syntax/javascript.vim
就搞定这个了。你的
set foldmethod?
What is the output?set shiftwidth
indent fold-indent
Automatically define folds by indented lines.
The folding level is calculated by dividing the line indentation by 'shiftwidth' (rounded down). Consecutive rows with the same or higher folding level form a fold. Within it, rows with higher fold levels form nested folds.
The number of nesting levels is limited by the 'foldnestmax' option.