specta.vim


Ⅰ. 插件描述

Vim syntax highlighting for Specta/Expecta

Ⅱ. 基本信息

创建日期:  2013-04-10
使用用户:  2
Github星:  2
插件作者:  Keith Smiley

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# specta.vim

Syntax highlighting for the specta
& expecta Objective-C test
frameworks.

Installation

With Vundle

Add:

Bundle 'Keithbsmiley/specta.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/specta.vim.git

Setup

You can set the syntax for a file manually with set syntax=specta I
recommend you do this in your .vimrc detecting your typical test
filename.

autocmd BufNewFile,BufRead *Test.m setlocal syntax=specta foldmethod=syntax

This changes the syntax to specta whenever a file named *Test.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=objc

You can also install
cocoa.vim which adds some
Objective-C highlighting features (automatically used by specta.vim if
it's accessible).

This plugin also provides mappings for
vim-endwise.

Known issues

If you find any other issues or have any recommendations on how to solve
these let me know via issues/pull requests

添加新评论