© 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.
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
Run the following command:
git clone https://github.com/oasys/vim-textfsm.git ~/.vim/bundle/vim-textfsm
Add the following line to your ~/.vimrc
:
Plugin 'oasys/vim-textfsm'
Add the following line to your ~/.vimrc
:
Plug 'oasys/vim-textfsm'
Copy all of the files manually into your ~/.vim
directory.