Page 1 of 2
Syntax highlighter for vim - Now Available V2!
Posted: Tue Oct 25, 2005 4:18 am
by dracflamloc
Would anyone be interested in a syntax highlighter file for purebasic in vim?
I'll probably make it just for myself, just curious if anyone would want me to post it.
[Edit] V2 is ready - Added "And" and "Or":
http://www.dracsoft.com/zips/vim-purebasic.zip
Linux filetype.vim:
http://www.dracsoft.com/zips/vim-filetype-linux.zip
Autocomplete dictionaries:
http://www.dracsoft.com/zips/vim-pb-dict.zip
Posted: Tue Oct 25, 2005 8:14 am
by Tommy
I would be interested....

Posted: Tue Oct 25, 2005 2:19 pm
by dracflamloc
Alright when its done i'll post it here.
Posted: Tue Oct 25, 2005 2:23 pm
by Dare2
Will be appreciated. Thanks.

Posted: Tue Oct 25, 2005 3:08 pm
by dracflamloc
btw, anyone have a text file of all pb functions?
Posted: Tue Oct 25, 2005 4:32 pm
by blueznl
search the forum, the compiler is supposed to generate one on every call
Posted: Tue Oct 25, 2005 4:41 pm
by ts-soft
dracflamloc wrote:btw, anyone have a text file of all pb functions?
see here:
viewtopic.php?t=11456
"Procedure.l ExtractPBFunctions()""
Posted: Tue Oct 25, 2005 5:43 pm
by dracflamloc
Yea I found the files the compiler makes. I'm all set. The highlighter is ready to be tested and I'll post it soon.
Posted: Tue Oct 25, 2005 5:55 pm
by dracflamloc
Ok heres the first version.
If you've made personal changes to filetype.vim you should add the purebasic auto-syn line yourself.
http://www.dracsoft.com/zips/vim-purebasic.zip
Enjoy! If you make any changes to the purebasic.vim file you should post them back here!
If you're new to vim, you can turn on the syntax highlighting by doing ":sy on"
Posted: Tue Oct 25, 2005 6:52 pm
by Tommy
thanks!
Posted: Wed Oct 26, 2005 1:12 am
by dracflamloc
The filetype.vim in the zip didn't work with linux vim, so heres a different one for linux. The syntax file is still the same.
http://dracsoft.com/zips/vim-filetype-linux.zip
I'll be creating an auto-complete dictionary of all the functions and such soon.
Posted: Wed Oct 26, 2005 1:29 am
by Dare2
Thanks!

Posted: Wed Oct 26, 2005 1:33 am
by dracflamloc
Dictionaries are now available for autocomplete. A good guide for how to use autocomplete dictionaries is here:
http://www.vim.org/tips/tip.php?tip_id=91
The dictionaries are here:
http://www.dracsoft.com/zips/vim-pb-dict.zip
I put the following in my purebasic.vim:
set dictionary-=/usr/share/vim/pb-proc-dict dictionary+=/usr/share/vim/pb-proc-dict
set complete-=k complete+=k
This makes the dictionary load/unload every time a pb file is opened, and sets your keyboard shortcut for autcomplete (Ctrl-n) to include the dictionary by default.
Posted: Wed Oct 26, 2005 4:25 am
by dracflamloc
Has anyone tried this in the linux console version? I can't seem to get the highlighting to autoload. in gvim it loads automatically however.. just wondering if anyone else had this problem.
The windows console vim autoloads it just fine.
Posted: Thu Oct 27, 2005 2:11 am
by dracflamloc
New version is up. I forgot to put "And" and "Or" !!!