Syntax highlighting for elog files in Vim

This entry was posted by on Wednesday, 13 April, 2011 at

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:

  1. Copy elog.vim to ~/.vim/syntax/ (you may need to create this directory)
  2. Add the following line ot your ~.vimrc: au BufNewFile,BufRead *.elog set syntax=elog

That’s all! Enjoy.

4 Responses to “Syntax highlighting for elog files in Vim”

  1. 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.

  2. nevermind. installing vim rather than vim-tiny did the trick.

  3. 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)


  1. Getting grip on eventlogs in OMNeT++ @

Leave a Reply