mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
lets try again...
This commit is contained in:
41
sources_non_forked/vim-less/README.md
Normal file
41
sources_non_forked/vim-less/README.md
Normal file
@ -0,0 +1,41 @@
|
||||
# VIM-LESS #
|
||||
|
||||
This vim bundle adds syntax highlighting, indenting and autocompletion for the dynamic stylesheet language [LESS](http://lesscss.org).
|
||||
|
||||
This bundle is compatible with [vim-css-color](https://github.com/skammer/vim-css-color),
|
||||
[vim-css3-syntax](https://github.com/hail2u/vim-css3-syntax) and possibly other plugins that place code
|
||||
in `after/syntax/css.vim` or `after/syntax/css/*.vim`.
|
||||
|
||||

|
||||
|
||||
## Installing and Using ##
|
||||
|
||||
- Install [pathogen](http://www.vim.org/scripts/script.php?script_id=2332) into `~/.vim/autoload/` and add the
|
||||
following line to your `~/.vimrc`:
|
||||
|
||||
call pathogen#infect()
|
||||
|
||||
- Make a clone of the `vim-less` repository:
|
||||
|
||||
$ mkdir -p ~/.vim/bundle
|
||||
$ cd ~/.vim/bundle
|
||||
$ git clone https://github.com/groenewege/vim-less
|
||||
|
||||
- OR use git submodules:
|
||||
|
||||
$ git submodule add https://github.com/groenewege/vim-less.git bundle/vim-less
|
||||
$ git submodule init
|
||||
|
||||
That's it. Pathogen should handle the rest. Opening a file with a `.less`
|
||||
extension will load everything.
|
||||
|
||||
### Map
|
||||
.less to .css , lessc is required.
|
||||
|
||||
nnoremap ,m :w <BAR> !lessc % > %:t:r.css<CR><space>
|
||||
|
||||
## Credits ##
|
||||
|
||||
Inspiration from [vim-haml](https://github.com/tpope/vim-haml),
|
||||
[scss-syntax.vim](https://github.com/cakebaker/scss-syntax.vim) and
|
||||
[vim-less](https://github.com/lunaru/vim-less)
|
Reference in New Issue
Block a user