Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently with vim 7.3 SCSS (*.scss, with the same syntax as CSS) works out of the box. However, tab character is used instead of two spaces. I'd like to know how to change that.
Comment | File | Size | Author |
---|---|---|---|
#2 | vimrc-sass-1951106-2.patch | 727 bytes | benjifisher |
Comments
Comment #1
jcisio CreditAttribution: jcisio commentedI can add:
autocmd BufRead,BufNewFile *.scss set filetype=css
into ftdetect/drupal.vim but I don't think it is the proper way to do.
Comment #2
benjifisherThis is a great idea, especially now that Zen includes a bunch of SCSS files.
I think that .scss and .sass are already recognized as SCSS/SASS. Your suggestion just tells vim to treat them as ordinary CSS; it does not say to do anything Drupal-specific.
I just committed the patch from #1903214-10: You're munging my non-Drupal PHP files, which reorganizes the code in a big way, including removing ftdetect/drupal.vim. Either apply that patch or "git pull" and then try the one attached here.
Comment #3
jcisio CreditAttribution: jcisio commentedWorks as expected.
Comment #4
benjifisherThanks for the quick review. Fixed and committed: 26ec57a.