This is a vim plugin for game developer which using quick-cocos2d-x (Cocos2d-Lua).
Support Cocos2d-Lua v3.3, Cocos2d-Lua-Community 4.x
- Code autocomplete, shortcut key
<C-x><C-o>
or<Tab>
. - Run Quick Player (3.x) for the project of current buffer, shortcut key
<F5>
. - Run LuaGameRunner (4.x) for the project of current buffer, shortcut key
<F6>
.
Enjoy it!
If you use Pathogen, do this:
cd ~/.vim/bundle
git clone https://github.com/u0u0/vim-quick-cocos2d-x
Note: plugin require Vim build with python support. For Windows user, need Python & Vim both are 32bit or 64bit version.
Add this to your vimrc:
let g:cocos2dx_diction_location = '~/.vim/bundle/vim-quick-cocos2d-x/key-dict'
" config engine path for Cocos2d-Lua-Community 4.x
let g:cocos2d_lua_community_root = '/Users/u0u0/Cocos2d-Lua-Community'