My code snippet is as shown below
My vim configuration file is as follows:
][3]
At this time, there is no way to fold the code when I press za
.
But python functions can be folded normally in python files
Please ask God for answers.
过去多啦不再A梦2017-05-16 16:39:14
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.