habamax / vim-godot

Use vim and godot engine to make games
MIT License
498 stars 24 forks source link

GodotRun command 'Not an editor command' #14

Closed CaptainKraft closed 4 years ago

CaptainKraft commented 4 years ago

I'm on Arch Linux using Vim.

It looks like syntax highlighting is working, but for some reason, Vim doesn't recognize the GodotRun commands at all.

habamax commented 4 years ago
  1. check what is your filetype with set ft?
  2. check if you have ~/.vim/pack/...../start/vim-godot/ftplugin/gdscript.vim (vim-plug and others might use different dirs)
  3. check the output of :scriptnames, there should be ftplugin/gdscript.vim there

Basically, make sure you have installed it correctly.

habamax commented 4 years ago

Also try to execute following command when you have opened .gd file:

command! -buffer -nargs=? -complete=customlist,godot#scene_complete GodotRun call godot#run(<q-args>)

and after it try GodotRun