Warning: Trying to access array offset on value of type bool in /data/www/freeminded.org/www/wp-content/plugins/wp-latex/wp-latex.php on line 39 Syntax highlighting for NED files in Vim @ Freeminded.org Warning: Trying to access array offset on value of type bool in /data/www/freeminded.org/www/wp-content/plugins/wp-latex/wp-latex.php on line 46

Syntax highlighting for NED files in Vim

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

If you want to edit OMNeT++ NED files in Vim, it may be nice to have some syntax highlighting.

This is not (yet) installed by default but there’s a good syntax highlight file by Timo Teifel at vim.org. Installation is simple:

  1. Download ned.vim into ~/.vim/syntax/ (you may need to create a new directory)
  2. Add the following to your ~.vimrc: au BufNewFile,BufRead *.ned set syntax=ned

That’s all!


Leave a Reply