oasys / vim-textfsm

A vim plugin for syntax highlighting TextFSM templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-textfsm

License

© 2021 Jason Lavoie

Vim syntax plugin for TextFSM template files. TextFSM is a template-based state machine for parsing semi-formatted text files, such as those returned from the CLI of networking devices.

Screenshots

Cisco IOS Show CDP Neighbors

Configuration

By default all files with a .textfsm extension will have this syntax set. For different a filetype, add something like this to your ~/.vimrc:

autocmd BufRead,BufNewFile *.template *.tmpl set filetype=textfsm

Installation

Pathogen

Run the following command:

git clone https://github.com/oasys/vim-textfsm.git ~/.vim/bundle/vim-textfsm

Vundle

Add the following line to your ~/.vimrc:

Plugin 'oasys/vim-textfsm'

Plug

Add the following line to your ~/.vimrc:

Plug 'oasys/vim-textfsm'

No Plugin Manager

Copy all of the files manually into your ~/.vim directory.

About

A vim plugin for syntax highlighting TextFSM templates

License:Apache License 2.0


Languages

Language:Vim Script 90.6%Language:Shell 9.4%