livestyle-vim


Ⅰ. 插件描述

Emmet LiveStyle for Vim

Ⅱ. 基本信息

创建日期:  2013-08-08
使用用户:  17
Github星:  111
插件作者:  mattn

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mattn/livestyle-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mattn/livestyle-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mattn/livestyle-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# LiveStyle for Vim

Requirements

  • Google Chrome on Windows, Linux, MacOSX

Install

  1. Build server
    Install golang and build.

http://golang.org/doc/install

$ cd /path/to/livestyle-vim/livestyled
$ go get -d
$ go build livestyled.go
  1. Install Chrome Extension

Install from here

Usage

  1. Open local file with chrome.
  2. Start LiveStyle server

    :LiveStyle
  3. Open the file

    :e /path/to/style.css

Notice

If you don't get update of content even though modify css on vim, probably socket connection is not recognized by your http browser.
Type <F12> to open developer tools, and click LiveStyle tab, check that you can see Vim icon, and path is selected in the combo-box.

TODO

  • Strict properties replacement
  • Strict properties addition

Project Authors

Yasuhiro Matsumoto

添加新评论