Ⅰ. 插件描述
Some vim scripts for use with the Robot framework.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mfukar/robotframework-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mfukar/robotframework-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mfukar/robotframework-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mfukar/robotframework-vim
Ⅳ. 文档说明
Vim plugins for development with Robot framework
FUNCTIONALITY
- {rtp}/after/syntax/robot.vim - Robot syntax plugin for text, space-delimited files.
- {rtp}/ftdetect/robot.vim - Robot filetype recognition plugin for text, space-delimited files.
INSTALLATION
Quickly install by:
- git clone git://github.com/mfukar/robotframework-vim.git
- cd robotframework-vim && cp -R * ~/.vim/
USAGE
- To enable syntax highlighting in vim, you may add this line at the beginning
of a Robot Framework file(s):
`# -*- coding: robot -*-`
- Alternatively, set the
g:robot_syntax_for_txtglobal variable to treat .txt
files as Robot files. - Or to enable the syntax highlighting for just a specific file you can issue the following command from vim:
:setf robot