Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/plasticscafe/vim-less-autocompile
- Owner: plasticscafe
- Created: 2011-12-07T10:31:20.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-14T12:54:20.000Z (almost 13 years ago)
- Last Synced: 2024-06-28T08:36:20.554Z (3 months ago)
- Language: VimL
- Homepage:
- Size: 89.8 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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が赤くなります