Syntax Highlighter for VIM

Started by kruz, December 07, 2010, 06:05:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I prefer to use Linux over Windows, but when I have to use Windows, I still use gVim for editing files.  I created a simple highlighting file and it's not perfect or complete.  I've never created a syntax file, but it works for the most part.  You may have to mess with the filetype.vim file as .prg files are part of another language.  I attached the file as a txt so just rename to bennu.vim and move it to your syntax directory.  If anyone has any questions on how to get this to work properly, feel free to message me.

If anyone else has any familiarity with Vim syntax files, I would appreciate any input/help/suggestions.

--- added in response 2010-12-10
I'm not sure that I have an account for the Wiki or that this type of information should go on it since it is not official, nor is it completed... it just helps highlight the constants/functions and bennu language in general. 

As far as the installation instructions go, I'm not sure about each different GNU/Linux distribution as they keep their files in different locations.  But general install instructions would go as follows:

Warning!!! If you use FoxPro, there is a conflict as FoxPro also uses .prg !!!

  • Save the file and rename to bennu.vim
  • Move the file to your Syntax directory /usr/share/vim/vim##/syntax | Windows C:\Program Files\Vim\vim##\syntax (your directory may vary depending on OS)
  • Edit the /usr/share/vim/vim##/filetype.vim to reflect the files you want to be recognized by the syntax file.  example. au BufNewFile, BufRead *.prg,*.inc setf bennu  (You will want to remove the FoxPro lines from the filetype.vim file.)

Hope this helps (:


I think it could be interesting merge all posts and attachments about syntax highlighting in only one central place, if we want not to forget them.


Thanks a lot for your help. Installation instructions?

BTW: The perfect place for such a post is the wiki :)


Download Lastest BennuGD Release:


Good work, thank you! karma up  ;)