diff --git a/plugin/mlog.vim b/plugin/mlog.vim new file mode 100644 index 0000000..0ab3dbd --- /dev/null +++ b/plugin/mlog.vim @@ -0,0 +1,23 @@ +" File: mlog.vim +" Author: Nirenjan Krishnan +" Description: Syntax plugin for mlog script +" Last Modified: September 17, 2013 + +function MlogSyntax() + syntax match mlogStarDateHeader "^.\+ log, Stardate .\+$" + syntax match mlogSDSupplHeader "^.\+ log, supplemental$" + syntax match mlogStdHeader "^\[.\+\]$" + + syntax match mlogSeparator "^-\+$" + + "hi link mlogStarDateHeader Statement + "hi link mlogSDSupplHeader Type + hi link mlogStdHeader Comment + "hi link mlogSeparator String + + hi mlogStarDateHeader ctermfg=2 term=bold cterm=bold + hi mlogSDSupplHeader ctermfg=3 term=bold cterm=bold + hi mlogSeparator ctermfg=10 term=underline cterm=underline +endfunction + +autocmd BufReadPre $HOME/mlog/* :call MlogSyntax()