I'm trying to setup VIM for editing Actionscript 3 for some upcoming Flash projects. I dislike working in an IDE and prefer VIM. Right now, I know that I want:
I've tried setting up Omnicomplete but was running into issues.
How can I set up Omnicomplete with tab completion properly?
Where can I find a good AS3 syntax file?
What is a good AS3 compiler for terminal/bash?
Are there any other plugins you can suggest?
Any advice is appreciated.
Thanks!
I used to use this as3 syntax file: http://www.vim.org/scripts/script.php?script_id=1061
If you want to interpret ActionScript, you must do it through the Adobe software. It is a proprietary language so unless Adobe comes up with a command line interpreter, your not going to find one. (Edit: In fact Adobe Labs does have this FCSH, I have not tried it but it may be what your looking for). Check out http://bitbucket.org/kuy/dotfiles-x40/src/tip/vimfiles/dict/actionscript.dict for a dictionary file for ActionScript. Once you copy that file to your dict folder, add the following to your .vimrc:
autocmd FileType actionscript set omnifunc=actionscriptcomplete#CompleteAS
autocmd FileType actionscript :set dictionary=$HOME/vimfiles/dict/actionscript.dict