Syntax highlights to use Vala/GtkAML/GtkON with the VIM editor
==============================================================

Installation

  mkdir -p $HOME/.vim/syntax
  cp gtkaml.vim gtkon.vim vala.vim $HOME/.vim/syntax/vala.vim

Configuration

Add the following to your ~/.vimrc:

  autocmd BufRead *.vala set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
  autocmd BufRead *.vapi set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
  au BufRead,BufNewFile *.vala   setfiletype vala
  au BufRead,BufNewFile *.vapi   setfiletype vala
  au BufRead,BufNewFile *.gtkaml setfiletype gtkaml
  au BufRead,BufNewFile *.gtkon  setfiletype gtkon

The syntax file additionally supports following options in ~/.vimrc

  " Disable valadoc syntax highlight
  "let vala_ignore_valadoc = 1

  " Enable comment strings
  let vala_comment_strings = 1

  " Highlight space errors
  let vala_space_errors = 1
  " Disable trailing space errors
  "let vala_no_trail_space_error = 1
  " Disable space-tab-space errors
  let vala_no_tab_space_error = 1
  
  " Minimum lines used for comment syncing (default 50)
  "let vala_minlines = 120
