vim-unite-watson.vim


Ⅰ. 插件描述

vim-unite-watson.vim is the unite source for watson.

Ⅱ. 基本信息

创建日期:  2013-11-24
使用用户:  6
Github星:  14
插件作者:  alpaca-tc

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/alpaca-tc/vim-unite-watson.vim

Ⅳ. 文档说明

# README

vim-unite-watson.vim is the unite source for watson.

:Unite watson

:Unite watson

:Watson

:Watson

Install

.vimrc

" Using Bundle
Bundle 'Shougo/unite.vim'
Bundle 'alpaca-tc/vim-unite-watson.vim'

" Using NeoBundle
NeoBundleLazy 'alpaca-tc/vim-unite-watson.vim', {
      \ 'commands' : 'Watson',
      \ 'depends' : 'Shougo/unite.vim',
      \ 'autoload' : {
      \   'unite_sources' : ['watson', 'watson/dirty', 'watson/clean', 'watson/current_file'],
      \ }}

Install watson

git clone https://github.com/nhmood/watson-ruby/
cd watson-ruby
rake install

Usage

  • :Watson [{options}]
  • :Unite watson
  • :Unite watson/dirty
  • :Unite watson/clean
  • :Unite watson/current_file

Example

filetype plugin indent off

let s:bundle_dir = expand('~/.bundle')
if has('vim_starting') && !isdirectory(s:bundle_dir.'/neobundle.vim')
  call system('git clone https://github.com/Shougo/neobundle.vim.git '. s:bundle_dir . '/neobundle.vim')
endif

if has('vim_starting')
  execute 'set runtimepath+=' . s:bundle_dir . '/neobundle.vim'
  call neobundle#rc(s:bundle_dir)
endif

NeoBundleLazy 'alpaca-tc/vim-unite-watson.vim', {
      \ 'commands' : 'Watson',
      \ 'depends' : 'Shougo/unite.vim',
      \ 'autoload' : {
      \   'unite_sources' : ['watson', 'watson/dirty', 'watson/clean', 'watson/current_file'],
      \ }}

if has('vim_starting') && neobundle#exists_not_installed_bundles()
  execute 'NeoBundleInstall' join(neobundle#get_not_installed_bundle_names(), ' ')
endif

filetype plugin indent on

nnoremap <silent><C-J>d :Unite watson/dirty<CR>
nnoremap <silent><C-J>c :Unite watson/current_file<CR>

添加新评论