Advertisement
metalx1000

Phaser Autocomplete for VIM

Dec 21st, 2017
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. sudo apt install vim-pathogen vim-addon-manager vim-youcompleteme npm
  2.  
  3. #run vam to see what is available
  4. vam
  5.  
  6. #install packages
  7. vam install pathogen youcompleteme
  8.  
  9. #install tern
  10. sudo npm install -g tern
  11.  
  12. #copy phaser file to tern
  13. sudo wget "http://redchilligame.com/tutorials/vim_phaser/js/phaser.js" -O /usr/local/lib/node_modules/tern/plugin/phaser.js
  14.  
  15. #now in your phaser project folder create this file
  16. vim .tern-project
  17. {
  18.   "ecmaVersion": 6,
  19.   "libs": ["browser"],
  20.   "loadEagerly": [],
  21.  
  22.   "plugins": {
  23.     "phaser" : {},
  24.     "doc_comment": true
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement