krayon / gdscript3.vim

godot 3.x gdscript vim syntax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork

This project was originally located at calviken/vim-gdscript3 however that now appears to be gone :(

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

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:

  1. SuperTab: Shows completions when Tab is pressed.
  2. 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

About

godot 3.x gdscript vim syntax

License:MIT License


Languages

Language:Python 72.6%Language:Vim Script 27.4%