jumptocss


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2012-01-17
使用用户:  1
Github星:  5
插件作者:  ptrin

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

=========

JumpToCSS

JumpToCSS is a tiny plugin that helps you to quickly navigate from an HTML element to the CSS which affects it, if it is open in another buffer.

The plugin provides a single command, :JumpToCSS which can be mapped in .vimrc however you choose.

Recommended mapping:

nnoremap ,jc :JumpToCSS<CR>

Usage

Position the cursor inside of the start tag of an HTML element, and call the plugin using :JumpToCSS or whichever keymap you have specified. The plugin will use a regular expression to attempt to find the CSS that applies to the element in any open buffer with the .css file extension.

It's recommended to add the following to your .vimrc so that the quickfix window will close itself after you've made a selection from the results returned:

let g:jumptocss_autoclose = 1

Requirements

The plugin requires Vim to be compiled with +python.

添加新评论