Re: [Vala] Vala tutorial for C programmers?



Am Montag, den 06.08.2007, 18:19 -0300 schrieb Marcelo Lira:
Andreas,
A just have to change the path on my system (Ubuntu 7.04)

au! Syntax vala source $VIM/vim70/syntax/cs.vim

As vala adds few keywords I have this file in ~/.vim/syntax:

----

if exists("b:current_syntax")
    finish
endif

runtime syntax/cs.vim

syn keyword csModifier weak
syn keyword csType var
syn match csContextualStatement /\<\(construct\)[[:space:]\n]*{/me=s+9

----

It is activated by this ~/.vimrc line:

au BufRead,BufNewFile *.vala            setfiletype vala

Ciao,
Mathias
-- 
Mathias Hasselmann <mathias hasselmann gmx de>
http://taschenorakel.de/

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]