Ⅰ. 插件描述
A Vim syntax plugin for the Kiwi ObjC test frameworkⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'keith/kiwi-vim-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'keith/kiwi-vim-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'keith/kiwi-vim-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/keith/kiwi.vim
Ⅳ. 文档说明
# kiwi.vim
Syntax highlighting for the Kiwi
Objective-C test framework.
Installation
With Vundle
Add:
Bundle 'Keithbsmiley/kiwi.vim'To your .vimrc and run BundleInstall from within vim or `vim
+BundleInstall +qall` from the command line
With Pathogen
cd ~/.vim/bundle
git clone https://github.com/Keithbsmiley/kiwi.vim.gitSetup
You can set the syntax for a file manually with set syntax=kiwi I
recommend you do this in your .vimrc detecting your typical test
filename.
autocmd BufNewFile,BufRead *Spec.m setlocal syntax=kiwi foldmethod=syntaxThis changes the syntax to kiwi whenever a file named *Spec.m is
read or written (written sets the syntax correctly for newly created
files) You may also have to set the default filetype to Objective-C. I
use something like:
autocmd BufNewFile,BufRead *.h,*.m,*.pch setlocal filetype=objcYou can also install
cocoa.vim which adds some
Objective-C highlighting features (automatically used by kiwi.vim if
it's accessible).
Known issues
If you find any other issues or have any recommendations on how to solve
these let me know via issues/pull requests