Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim folding syntax for scss

Tags:

syntax

vim

sass

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

like image 985
Jeremy Iglehart Avatar asked Dec 29 '11 17:12

Jeremy Iglehart


1 Answers

Since you are using the new scss syntax, it is as simple as:

autocmd BufRead,BufNewFile *.css,*.scss,*.less setlocal foldmethod=marker foldmarker={,}
like image 90
tungd Avatar answered Sep 22 '22 06:09

tungd