Vim syntax for Cisco (and other platforms with similar configuration syntax)
switches and routers (show run
or show start
) files.
- Put all files under $VIM.
-
Install with the following command.
git clone https://github.com/momota/cisco.vim ~/.vim/bundle/cisco.vim
-
Add the following configuration to your
.vimrc
.NeoBundle 'momota/cisco.vim'
-
Install with
:NeoBundleInstall
.
Limited auto-detection is available based on file contents
Files ending with *.cisco
will automatically receive the highlighting
Or execute :set ft=cisco
Changed commenting rules to better reflect real Cisco IOS behavior