diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 16:17:03 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 16:17:03 +0200 |
commit | 01fe1500df97577452f755b526c09d8ed0c802ea (patch) | |
tree | 9e2e038630cc9e82abcd17da6dd3407a9b3bc62a /ftplugin/less.vim | |
parent | dce12af91b404835938e95de9e6d839d52487ed5 (diff) | |
download | vim-polyglot-01fe1500df97577452f755b526c09d8ed0c802ea.tar.gz vim-polyglot-01fe1500df97577452f755b526c09d8ed0c802ea.zip |
Add support for basic languages
coffee, cucumbeer, eruby, haml, haskell, javascript,
json, less, nginx, ocaml, ruby, sass, scss, slim,
stylus, textile, tmux
Diffstat (limited to 'ftplugin/less.vim')
-rw-r--r-- | ftplugin/less.vim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ftplugin/less.vim b/ftplugin/less.vim new file mode 100644 index 00000000..b6eaf6a3 --- /dev/null +++ b/ftplugin/less.vim @@ -0,0 +1,25 @@ +" Vim filetype plugin +" Language: LessCSS +" Author: Tim Pope <vimNOSPAM@tpope.org> +" Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de> +" Last Change: 2011 Sep 30 + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<" + +setlocal iskeyword+=- +setlocal commentstring=//\ %s +setlocal define=^\\s*\\%(@mixin\\\|=\\) +setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','') +setlocal omnifunc=csscomplete#CompleteCSS +setlocal suffixesadd=.less +setlocal comments=s1:/*,mb:*,ex:*/ + +let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\=' + +" vim:set sw=2: |