Syntax highlighting for elog files in Vim
OMNeT++ can generate eventlogs. All really neat and such, but without proper syntax highlighting it is not very suitable for visual inspection.
I’ve created a simple syntax highlighter for elog files.
Installation is simple:
- Copy elog.vim to ~/.vim/syntax/ (you may need to create this directory)
- Add the following line ot your ~.vimrc:
au BufNewFile,BufRead *.elog set syntax=elog
That’s all! Enjoy.
Installing the complete vim is always a good idea. Given the small size of both (396KiB for vim-tiny and 971KiB for vim in the Debian repos) I wonder why on many distributions vim-tiny is the default – you hardly save any space and sacrifice a lot of functionality.
nevermind. installing vim rather than vim-tiny did the trick.
E319: Sorry, the command is not available in this version: au BufNewFile,BufRead *.elog set syntax=elog
VIM – Vi IMproved 7.2 (2008 Aug 9, compiled Apr 16 2010 12:33:18)
Included patches: 1-330
(okay, I’m not a vim guru, not even a regular vim user, so there might be something obvious I’ve missed while following your instructions. If it works for you with that version, I bet it’s just my bad)