Skip to content

Instantly share code, notes, and snippets.

@timothyasp
Created August 8, 2014 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyasp/0028ea3731bd11457ede to your computer and use it in GitHub Desktop.
Save timothyasp/0028ea3731bd11457ede to your computer and use it in GitHub Desktop.
LESS/CSS and PHTML vim config
// Plugins
https://github.com/othree/html5.vim
https://github.com/SirVer/ultisnips
https://github.com/skammer/vim-css-color
https://github.com/hail2u/vim-css3-syntax
https://github.com/groenewege/vim-less
// After installling all of those, add the following to your .vimrc
"==========================================
" Set less syntax
nnoremap <Leader>m :w <BAR> !lessc % > %:t:r.css<CR><space>
au BufNewFile,BufRead *.phtml set filetype=php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment