vim-less


Ⅰ. 插件描述

LessCSS Syntax support in Vim

Ⅱ. 基本信息

创建日期:  2011-04-26
使用用户:  90
Github星:  18
插件作者:  Lu Wang

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lunaru/vim-less-state-of-grace'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lunaru/vim-less-state-of-grace'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lunaru/vim-less-state-of-grace'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lunaru/vim-less

Ⅳ. 文档说明

This vim bundle adds syntax highlighting for [.less]. It's based on leafo's vim resource. This README is also heavily inspired by [vim-coffee-script].

Installing and Using

  1. Install tpope's [pathogen] into ~/.vim/autoload/ and add the
    following line to your ~/.vimrc:
    call pathogen#runtime_append_all_bundles()

 Be aware that it must be added before any `filetype plugin indent on`
 lines according to the install page:

 > Note that you need to invoke the pathogen functions before invoking
 > "filetype plugin indent on" if you want it to load ftdetect files. On
 > Debian (and probably other distros), the system vimrc does this early on,
 > so you actually need to "filetype off" before "filetype plugin indent on"
 > to force reloading.
  1. Create, and change into, the ~/.vim/bundle/ directory:

        $ mkdir -p ~/.vim/bundle
        $ cd ~/.vim/bundle
    
  2. Make a clone of the vim-less repository:

        $ git clone git://github.com/lunaru/vim-less.git
        [...]
        $ ls
        vim-less/
    

That's it. Pathogen should handle the rest. Opening a file with a .less
extension will load everything.

Updating

  1. Change into the ~/.vim/bundle/vim-less/ directory:

        $ cd ~/.vim/bundle/vim-less
    
  2. Pull in the latest changes:

        $ git pull
    

Everything will then be brought up to date.

添加新评论