Ⅰ. 插件描述
grsecurity policy syntax highlighting for VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'verbosemode/grsecurity-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'verbosemode/grsecurity-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'verbosemode/grsecurity-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/verbosemode/grsecurity.vim
Ⅳ. 文档说明
grsecurity.vim
grsecurity policy syntax highlighting for VIM
Known bugs
r is not highlighted if there are whitespaces after it
TODO
- More accurate IPv4 and netmask regexp
- verify with gradm source if all object / role flags are covered
- Subject flags
- Comment syntax file
