Ⅰ. 插件描述
neocomplcache snippet complete plugin for phpunit.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'nishigori/neocomplcache-phpunit-snippet'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'nishigori/neocomplcache-phpunit-snippet'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'nishigori/neocomplcache-phpunit-snippet'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/nishigori/neocomplcache-phpunit-snippet
Ⅳ. 文档说明
Author : @_nishigori<nishigori.tak@gmail.com>
License: MIT license
neocomplcacheに同梱されているsnippet機能のphpunit版。
このsnippetを使用するにはVim plugin[neocomplcache]が必要です。
Vimではfiletypeにphpunitが存在しません。
以下のコードをvimrcもしくはfiletype php.vimに記述してfiletype phpunitを定義してください。
augroup PHPUnitFileType
autocmd!
autocmd BufWinEnter,BufNewFile *Test.php set filetype=php.phpunit
augroup END
vudleやpathogen.vim等のplugin manager を導入している場合は
git submodule add や Bundleコードの記述で簡単にphpunit snippet を導入できます。
Ex.) " Vundle plugin at .vimrc
filetype off
set rtp+=~/.vim/vundle.git/
call vundle#rc()
Bundle 'nishigori/neocomplcache_phpunit_snippet'
filetype plugin indent on
Vim's plugin manager を使用していない場合は、neocomplcacheで定義できる
g:neocomplcache_snippets_dirでphpunit snippet を置くディレクトリを指定しましょう。
Ex.)
let g:neocomplcache_snippets_dir = $HOME . '/snippets'
Introduced Vim's Plugin
[neocomplcache] https://github.com/Shougo/neocomplcache
[vundle] https://github.com/gmarik/vundle
[pathogen] https://github.com/tpope/vim-pathogen
vim: set filetype=vim tw=78:ts=8:ft=help:norl:noet:fen:fdl=0: