Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

vim syntax file for docsis

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages