Ⅰ. 插件描述
Script to highlight cisco configuration filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/cisco-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/cisco-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/cisco-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cisco.vim
Ⅳ. 文档说明
This script will highlight some of the more common cisco configuration elements such as IP addresses and masks, router and configuration prompts, interface names, and a few other useful highlighting elements. It also has syntax highlighting intended for use in Conqueterm, for those who might use that vim script to open a terminal in their vim buffer and apply syntax highlighting to it allowing them to highlight live router and switch login sessions. There is highlighting to catch some common error conditions found in the output of "show interface" on most platforms, as well as interface up and down status. It is far from complete, and more sections will be added in the future.