Skip to content

Commit

Permalink
Add autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Sep 30, 2011
1 parent 2fd506c commit 8d4559c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ftplugin/less.vim
@@ -0,0 +1,23 @@
" 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 commentstring=//\ %s
setlocal define=^\\s*\\%(@mixin\\\|=\\)
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
setlocal omnifunc=csscomplete#CompleteCSS
setlocal suffixesadd=.less

let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='

" vim:set sw=2:

0 comments on commit 8d4559c

Please sign in to comment.