sudo apt install vim-pathogen vim-addon-manager vim-youcompleteme npm #run vam to see what is available vam #install packages vam install pathogen youcompleteme #install tern sudo npm install -g tern #copy phaser file to tern sudo wget "http://redchilligame.com/tutorials/vim_phaser/js/phaser.js" -O /usr/local/lib/node_modules/tern/plugin/phaser.js #now in your phaser project folder create this file vim .tern-project { "ecmaVersion": 6, "libs": ["browser"], "loadEagerly": [], "plugins": { "phaser" : {}, "doc_comment": true } }