Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shadowwa/vim-docsis
- Owner: shadowwa
- Created: 2022-06-01T20:14:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T18:55:55.000Z (over 1 year ago)
- Last Synced: 2024-10-30T07:06:43.750Z (2 months ago)
- Topics: docsis, syntax, syntax-highlighting, tlv, vim, vim-plugins
- Language: Vim Script
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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