CrazyTB | 2005-08-25 13:43
Syntax highlighting for cube scripts in Vim editor
16
points ]
 (2 votes)
Syntax highlighting for cube scripts in Vim editor

This is a syntax file for Cube cfg files. It applies to autoexec.cfg, package.cfg and any other file which uses Cube script.

Features:

  • Support for keyboard keys names only after "bind" command. (MOUSE1, MOUSE2,... is also supported)
  • Support for entities names only after "newent" and "clearents" commands.
  • Support for all cube commands of version 2004_05_22, except "keymap" (which you should not use, according to docs).
  • Recognizes special aliases "level_trigger_xx" and "nextmap_xx".

Install details:

Put the file on ~/.vim/syntax/ directory. Then, when opening some Cube cfg file, type:
:set syntax=cube

You can/should also put this line at top or bottom of your Cube cfg file:
// vim: set syntax=cube
This will make vim automatically apply the Cube syntax.

See also:
Vim official site
This script at vim official site

cube.vim (4.34 KB)
16
points
 (2 votes)
User login
24
points ]
 (4 votes)
Created 2012-05-08 18:54
1 week 2 days ago
15
points ]
 (2 votes)
Created 2012-05-15 16:29
2 days 4 hours ago
Created 2012-05-14 12:21
3 days 9 hours ago
Created 2012-05-14 07:51
3 days 13 hours ago
Created 2012-02-24 16:23
11 weeks 6 days ago
RaZgRiZ
20
points ]
 (2 votes)
Created 2012-04-07 22:08
5 weeks 4 days ago
6
points ]
 (2 votes)
Created 2012-01-15 18:54
17 weeks 4 days ago
206
points ]
 (24 votes)
Created 2012-04-25 02:40
3 weeks 1 day ago
Created 2012-04-26 22:46
2 weeks 6 days ago
Created 2012-05-11 00:30
6 days 20 hours ago
8
points ]
 (1 vote)
Created 2012-05-03 00:47
2 weeks 20 hours ago
16
points ]
 (3 votes)
Created 2010-06-21 16:53
1 year 47 weeks ago
53
points ]
 (6 votes)
Created 2012-05-07 02:33
1 week 3 days ago
99
points ]
 (12 votes)
Created 2010-05-16 19:50
2 years 2 days ago
Created 2012-03-15 23:10
8 weeks 6 days ago
Created 2012-05-06 08:39
1 week 4 days ago
12
points ]
 (3 votes)
Created 2012-05-01 13:01
2 weeks 2 days ago
25
points ]
 (3 votes)
Created 2012-05-02 14:00
2 weeks 1 day ago
38
points ]
 (5 votes)
Created 2012-01-07 03:38
18 weeks 5 days ago
Users on Quadropolis
3 guests & no users online