Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.25 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.25 KB

Vim Docsis

Syntax highlighting and matching rules for Docsis config files

Installation

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.

Command

  • :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

Folding is enabled for headers by default.

The following commands are useful to open and close folds:

  • zr: reduces fold level throughout the buffer
  • zR: opens all folds
  • zm: increases fold level throughout the buffer
  • zM: folds everything all the way
  • za: open a fold your cursor is on
  • zA: open a fold your cursor is on recursively
  • zc: close a fold your cursor is on
  • zC: close a fold your cursor is on recursively