Syntax highlighting and matching rules for Docsis config files
If you use Vundle, add the following lines
to your ~/.vimrc
:
Plugin 'shadowwa/vim-docsis'
Then run inside Vim:
:so ~/.vimrc
:PluginInstall
If you use Pathogen, do this:
cd ~/.vim/bundle
git clone https://github.com/shadowwa/vim-docsis.git
For vim-plug users:
Plug 'shadowwa/vim-docsis'
in your .vimrc
or init.vim
, then restart Vim and run :PlugInstall
.
:TLVDecode
: split the TLV string under the cursor and display each part with the Hexadecimal, the Decimal conversion andi, if it looks like a valid string, a string conversion.
Folding is enabled for headers by default.
The following commands are useful to open and close folds:
zr
: reduces fold level throughout the bufferzR
: opens all foldszm
: increases fold level throughout the bufferzM
: folds everything all the wayza
: open a fold your cursor is onzA
: open a fold your cursor is on recursivelyzc
: close a fold your cursor is onzC
: close a fold your cursor is on recursively