scss 的 vim 折叠语法 [英] vim folding syntax for scss
本文介绍了scss 的 vim 折叠语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你折叠 scss 代码的技巧是什么?教皇先生在他的语法文件中定义了这一点并不奇怪:https://github.com/tpope/vim-haml
What are your techniques for folding scss code? It doesn't seam that Mr. Pope has this defined in his syntax file: https://github.com/tpope/vim-haml
推荐答案
由于您使用的是新的 scss 语法,因此非常简单:
Since you are using the new scss syntax, it is as simple as:
autocmd BufRead,BufNewFile *.css,*.scss,*.less setlocal foldmethod=marker foldmarker={,}
这篇关于scss 的 vim 折叠语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文