Ⅰ. 插件描述
Cube engine script syntax fileⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/cube-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/cube-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/cube-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cube.vim
Ⅳ. 文档说明
This is a syntax file for Cube Engine cfg files. It applies to autoexec.cfg, package.cfg and any other file which uses Cube script.
More info about Cube Engine here: http://cube.sourceforge.net/
This is my first syntax file. Maybe it isn't the best, but it works very well.
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".
I don't know if it will work on Vim 5.