Ⅰ. 插件描述
Syntax highlighting and completion for GDScript 3Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'calviken/vim-gdscript3'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'calviken/vim-gdscript3'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'calviken/vim-gdscript3'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/calviken/vim-gdscript3
Ⅳ. 文档说明
# Description
GDScript is the primary scripting language used by the Godot Game Engine.
This plugin adds syntax highlighting and completion for the most recent version (3.0 at the time of writing).
Installation
Using vim-plug:
Plug 'calviken/vim-gdscript3'
Or any other plugin manager of your choice.
Screenshot

Colorscheme: base16-eighties
Completion
(Note: this feature requires Vim to be compiled with Python support)
Vim's completion feature can be used to display members and methods of built-in GDScript types (among other things).
To show completions, press <C-x><C-o> in insert mode, and use <C-n> and <C-p> to cycle through completions.
Alternatively, install a completion plugin (recommended). The following plugins are supported out of the box:
- SuperTab: Shows completions when Tab is pressed.
- Deoplete: Asynchronous completion framework that shows completions as you type.
Any plugin that supports omnicompletion should also work, but will likely require additional configuration.
echodoc is also supported, for showing method signatures in the echo area (useful for methods with lots of parameters).
For a non-comprehensive list of features, see this wiki page
Syntastic
For Syntastic users, a checker is included and enabled by default.
First, download the Godot server binary, rename to godot_server, and place in a $PATH accessible directory.
Credit goes to clktmr for creating the checker.
License
MIT