vimrc for AS3 development
Posted: December 21st, 2008 | Author: scy | Filed under: Flash, Notes | Tags: as3, Flash, Notes, vim | No Comments »Backup of my vimrc file that was customized using the links below. It is setup with Flash(AS3) development in mind.
http://vim.wikia.com/wiki/Quick_yank_and_paste
http://www.flashdevelop.org/community/viewtopic.php?f=9&t=3973
syntax on colorscheme kib_darktango " Normal copy/paste vmap <C-c> y<Esc>i vmap <C-x> d<Esc>i imap <C-v> <Esc>pi imap <C-y> <Esc>ddi map <C-z> <Esc> imap <C-z> <Esc>ui set number set nowrap set autoindent " Any file with .as extension is treated as an actionscript file autocmd BufRead *.as set filetype=actionscript "Preview in webbrowser command Preview :!firefox %:p:r.swf "This command (:DebugF) launch flashplayer debug. In gvim, juste type :DebugF or :De and tab command DebugF :! /home/scy/flash/flashplayer %:p:r.swf " Compile for Flash Player 10. command Flex4 :! /home/scy/flash/flex_4.0.0.4/bin/mxmlc %:p " Compile using Flex3 sdk and Flash Player 9. " Output .swf is named after [filename] ie Test.as results in Test.swf command Flex3 :! /home/scy/flash/flex_3/bin/mxmlc %:p |