Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shadowwa/vim-docsis

vim syntax file for docsis
https://github.com/shadowwa/vim-docsis

docsis syntax syntax-highlighting tlv vim vim-plugins

Last synced: 16 days ago
JSON representation

vim syntax file for docsis

Awesome Lists containing this project

README

        

# Vim Docsis

Syntax highlighting and matching rules for Docsis config files

## Installation

If you use [Vundle](https://github.com/gmarik/vundle), add the following lines
to your `~/.vimrc`:

```vim
Plugin 'shadowwa/vim-docsis'
```

Then run inside Vim:

```vim
:so ~/.vimrc
:PluginInstall
```

If you use [Pathogen](https://github.com/tpope/vim-pathogen), do this:

```sh
cd ~/.vim/bundle
git clone https://github.com/shadowwa/vim-docsis.git
```

For [vim-plug](https://github.com/junegunn/vim-plug) users:

```vim
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