Ⅰ. 插件描述
rfc syntax : Simple syntax highlight for RFC file (http://www.vim.org/scripts/script.php?script_id=2930)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zer4tul/rfc-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zer4tul/rfc-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zer4tul/rfc-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zer4tul/rfc.vim
Ⅳ. 文档说明
RFC Syntax
:Authors:
lilydjwg
:Version:
1.0
:Script Type:
syntax
NOTE
This is only a mirror of vim script. I created this because the vim-scripts mirror on github doesn't include this plugin.
Description
Simple syntax highlight for RFC (Request For Comments) file.
It can highlight the contents, the titles and so on.
A ftplugin is also provided to use <C-]> to jump from the contents or reference note ([1] like things).
You can then use <C-t> to go back (once only). <C-o> and `` should work as expected.
Install Details
unzip the archive to your .vim (or vimfiles) directory.
You must add filetype detect by yourself. For example, add:
if expand('%:t') =~? 'rfcd+'
setfiletype rfc
endif
to your scripts.vim will make Vim recognize all files with name rfcXXXX as RFC file.
.. _vim script: http://www.vim.org/scripts/script.php?script_id=2930
.. _vim-scripts mirror on github: https://github.com/vim-scripts