less.vim 640 B

1234567891011121314151617181920212223
  1. " Vim filetype plugin
  2. " Language: LessCSS
  3. " Author: Tim Pope <vimNOSPAM@tpope.org>
  4. " Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de>
  5. " Last Change: 2011 Sep 30
  6. " Only do this when not done yet for this buffer
  7. if exists("b:did_ftplugin")
  8. finish
  9. endif
  10. let b:did_ftplugin = 1
  11. let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<"
  12. setlocal commentstring=//\ %s
  13. setlocal define=^\\s*\\%(@mixin\\\|=\\)
  14. setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
  15. setlocal omnifunc=csscomplete#CompleteCSS
  16. setlocal suffixesadd=.less
  17. let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
  18. " vim:set sw=2: