Ⅰ. 插件描述
A unite source for set phrasesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lambdalisue/unite-linephrase'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lambdalisue/unite-linephrase'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lambdalisue/unite-linephrase'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lambdalisue/unite-linephrase
Ⅳ. 文档说明
unite-linephrase
Version: 0.1.2

unite-linephrase is a Unite.vim plugin for listing, searching, manipulating set phrases.
It is developed for one liner set phrases (linephrases), something like:
- PyPI classifier entries
- Markdown styled hyperlinks, images, whatever
- Email addresses
This plugin use files for generating candidates. Basically each lines in the file are translated to source candidates.
Thus even Vim beginners can easily make them own sources for set phrases, it is quite good for users who are too bothered to create original sources as well :-p
Install
The repository follow a standard vim plugin's directory structure thus you can use Vundle.vim or neobundle.vim to install it like:
" Vundle.vim
Plugin 'lambdalisue/unite-linephrase'
" neobundle.vim
NeoBundle 'lambdalisue/unite-linephrase'
" neobundle.vim (Lazy)
NeoBundleLazy 'lambdalisue/unite-linephrase', {
\ 'autoload': {
\ 'unite_sources': 'linephrase',
\}}Usage
How to create a new linephrase file
Hit <CR> on "[[ Create a new linephrase file ]]" source in :Unite linephrase like the screencast below.

Use case 1: As a set phrase insertion helper
unite-linephase is developed for inserting a set phase.
When you hit <CR>, the selected linephase will be inserted into the current buffer.
You can use it like the screencast below.

Use case 2: As a simple reference
unite-linephrase can be used as a simple reference.
The working demo is like the screencast below.

How to edit existing linephrase files
You can open existing linephrase files with Unite action. See the screencast below.

How to delete existing linephrase files
You can delete existing linephrase files (or linephrase) with Unite action. See the screencast below.

License
The MIT License (MIT)
Copyright (c) 2014 Alisue, hashnote.net
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.