Home   Help Search Login Register  

Author Topic: SQF syntax highlighting for Vim (ACCEPTED)  (Read 4177 times)

0 Members and 1 Guest are viewing this topic.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
SQF syntax highlighting for Vim (ACCEPTED)
« on: 21 Jan 2009, 20:10:48 »
In case anyone out there is hardcorecrazy enough to edit his SQF/SQS files with Vim: worry not, here are the filetype and syntax files for SQF/SQS!


Installation:

Extract the archive and copy the vimfiles directory to your %USERPROFILE%. If your vimfiles directory already contains a filetype.vim you might need to add the corresponding line(s) from the filetype_for_sqf.vim. Otherwise simply rename the latter one to filetype.vim.

This is how it looks like (color scheme: desert, font: bitstream vera).


OFPEC Download (Dead link, use the attachment below)



CHANGES
2010-09-17, v0.4
  - rewrote the whole stuff because the original files went to the bit bucket

2009-05-31, v0.3
  - added new ARMA 2 commands
  - basic SQS support

2009-02-10, v0.2
  - added keyword "lightAttachObject"
  - improved constant hightlighting

2009-01-21
  - initial release


TODO
- Solve the "bracket closing" errors that show up in some constructs
- Display all real "bracket closing" errors
- Improve SQS support
- Get a clue and rewrite from scratch

« Last Edit: 17 Sep 2010, 20:19:32 by Worldeater »
try { return true; } finally { return false; }

Offline alef

  • Members
  • *
Re: SQF syntax highlighting for Vim
« Reply #1 on: 04 Feb 2009, 13:45:27 »
In case anyone out there is hardcorecrazy enough to edit his SQF files with Vim: worry not, here are the filetype and syntax files for SQF!
I did know we were not alone.
Thanks/Danke !

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: SQF syntax highlighting for Vim
« Reply #2 on: 10 Feb 2009, 09:59:42 »
Update: minor improvements (see CHANGES section above)
try { return true; } finally { return false; }

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: SQF syntax highlighting for Vim (ACCEPTED)
« Reply #3 on: 31 May 2009, 02:46:09 »
Updated. See CHANGES section above.
try { return true; } finally { return false; }

Offline Trexian

  • Members
  • *
Re: SQF syntax highlighting for Vim (ACCEPTED)
« Reply #4 on: 13 Oct 2009, 22:22:26 »
A portable version of gVim has been released.
http://portableapps.com/news/2009-10-13_-_gvim_portable_7.2

Is there any chance of an A2 version of the sqf syntax hilighting for it? :D

(I've also searched at d-h and didn't find anything.)
Sic semper tyrannosauro.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: SQF syntax highlighting for Vim (ACCEPTED)
« Reply #5 on: 31 Oct 2009, 14:33:44 »
In theory the syntax files should work fine.

Since you can't use the %USERPROFILE% directory simply copy the files to the installion directory (e.g. U:\PortableProgramms\vim\vimfiles).
try { return true; } finally { return false; }