Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/plasticscafe/vim-less-autocompile

vim auto compile when edit
https://github.com/plasticscafe/vim-less-autocompile

Last synced: about 2 months ago
JSON representation

vim auto compile when edit

Awesome Lists containing this project

README

        

### 用途 ###
vimでのless編集結果から自動的にcssを生成

### 前提 ###
サーバサイドにlessがインストール済み

ex) npm install -g less

### 使い方 ###

lessファイルのファイルタイプを定義すれば動作するはず

au! BufRead,BufNewFile *.less set filetype=less

読み込み時は自動コンパイル設定していないので下記変数を定義
let g:less_autocompile=1

自動コンパイルを行わない場合は下記(デフォルト)
let g:less_autocompile=0

### 圧縮設定 ###

cssを圧縮する場合は
let g:less_compress = 1

圧縮しない場合(デフォルト)
let g:less_compress = 0

### エラー検出 ###

エラー等の原因でコンパイルが失敗した場合はStatusLineが赤くなります