Ⅰ. 插件描述
Vim syntax for Junos configuration filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'clockworknet/vim-junos-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'clockworknet/vim-junos-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'clockworknet/vim-junos-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/clockworknet/vim-junos-syntax
Ⅳ. 文档说明
vim-junos-syntax
Vim syntax for Junos configuration files
| conf syntax example | conf_syntax_png | ||
|---|---|---|---|
| junos syntax example | junos_syntax_png | ||
| color scheme is molokai_ |
.. |conf_syntax_png| image:: docs/vim_conf_syntax.png
:alt: conf syntax example
.. |junos_syntax_png| image:: docs/vim_junos_syntax.png
:alt: junos syntax example
.. _molokai: https://github.com/tomasr/molokai
Install
Copy or soft link the respective junos.vim files into your~/.vim/syntax and ~/.vim/ftdetect directories.
Related
Scott Ware maintains vim-slax_: syntax coloring of slax, xslt-style language,
which is used for automation in Juniper Junos devices.
.. _vim-slax: https://github.com/scottdware/vim-slax
License
- LICENSE_ (
MIT License_)
.. _LICENSE: LICENSE
.. _MIT License: http://www.opensource.org/licenses/MIT