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.

CommentFileSizeAuthor
#2 vimrc-sass-1951106-2.patch727 bytesbenjifisher
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jcisio’s picture

I 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.

benjifisher’s picture

Status: Active » Needs review
FileSize
727 bytes

This 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.

jcisio’s picture

Status: Needs review » Reviewed & tested by the community

Works as expected.

benjifisher’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the quick review. Fixed and committed: 26ec57a.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.