Add Vim Syntax Highlighting for SystemTap
The source directory includes vim scripts to enable syntax highlighting and auto-indenting for SystemTap scripts. This support may be added on a per-user basis or system-wide.
(Note: this overrides Vim's own "Stored Procedures (STP)" syntax.)
Single-user Installation
Installation steps:
cd src/vim mkdir -p $HOME/.vim/ftdetect $HOME/.vim/ftplugin $HOME/.vim/indent $HOME/.vim/syntax cp -p ftdetect/stp.vim $HOME/.vim/ftdetect/ cp -p ftplugin/stp.vim $HOME/.vim/ftplugin/ cp -p indent/stp.vim $HOME/.vim/indent/ cp -p syntax/stp.vim $HOME/.vim/syntax/
That's it!
System-wide Installation
Installation steps:
cd src/vim cp -p indent/stp.vim /usr/share/vim/vimfiles/indent/ cp -p ftdetect/stp.vim /usr/share/vim/vimfiles/ftdetect/ cp -p ftplugin/stp.vim /usr/share/vim/vimfiles/ftplugin/ cp -p syntax/stp.vim /usr/share/vim/vimfiles/syntax/