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.
Single-user Installation
Installation steps:
cd src/vim mkdir -p $HOME/.vim/indent $HOME/.vim/ftplugin $HOME/.vim/syntax cp -p filetype.vim $HOME/.vim/ cp -p indent/stap.vim $HOME/.vim/indent/ cp -p ftplugin/stap.vim $HOME/.vim/ftplugin/ cp -p syntax/stap.vim $HOME/.vim/syntax/
That's it!
System-wide Installation
Installation steps:
cd src/vim cp -p indent/stap.vim /usr/share/vim/vim<version>/indent/ cp -p ftplugin/stap.vim /usr/share/vim/vim<version>/ftplugin/ cp -p syntax/stap.vim /usr/share/vim/vim<version>/syntax/
Edit "/usr/share/vim/vim<version>/filetype.vim" and comment the following lines:
" Stored Procedures "au BufNewFile,BufRead *.stp setf stp
And then add in the next couple of lines:
" SystemTap scripts au BufNewFile,BufRead *.stp setf stap
Save "filetype.vim" and you are done!
