There is no way to fold js code in vim
迷茫
迷茫 2017-05-16 16:37:14
0
2
705

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.

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
迷茫

Okay. /syntax/javascript.vim就搞定这个了。
你的set foldmethod?What is the output?

过去多啦不再A梦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template