Ⅰ. 插件描述
ooc highlighting for VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fasterthanlime/ooc-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fasterthanlime/ooc-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fasterthanlime/ooc-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/fasterthanlime/ooc.vim
Ⅳ. 文档说明
ooc.vim
This is the official vim plug-in for ooc language support.
It provides:
- Syntax highlighting
- Indentation support
- A syntastic plug-in for use with sam
:makecommand support (launchesrock -v)
Install instructions
Vundle is a very neat tool to manage your vim plugins, and
is the recommended way to get ooc.vim and keep it up-to-date.
Add this to your ~/.vimrc:
Bundle 'fasterthanlime/ooc.vim'Then restart vim, run :BundleInstall, and you're set!
Installing ooc.vim with pathogen should be as easy as cloning it in~/.vim/bundle
Syntastic
To use the syntastic plug-in, first you have to install syntastic
itself.
For now, the dependencies are as follow:
This plug-in uses the sam check command if the dependencies above are met, to
check whether there are errors in an .ooc file. It will only work for .ooc files
that are part of a project that has a .use file, not for standalone ooc files.
Checking with rock can be slow at times, especially within large projects. There
are two solutions to that.
One can change the checking mode using the g:syntastic_sam_mode option. To only
do syntax checking instead of a full source check, do:
let g:syntastic_sam_mode = 'syntax'The valid values for g:syntastic_sam_mode are syntax, check, and codegen
(from fastest to most thorough).
