On Apr 5, 2005 8:37 PM, Steven Webster <[EMAIL PROTECTED]> wrote:

> > s/id="\([^"]\+\)"/initialize="\1 = event.target"/g
> >
> 
> You're coding MXML in vi ?  ;-)

Totally, Steven!  I use Vim.  The secret of my energy. ;-)

Excerpts from my vimrc file:

  autocmd BufRead *.mxml set filetype=xml foldmethod=indent

if has("autocmd") " XML
  autocmd FileType xml  set noet ts=2 sw=2 tw=79
  autocmd FileType xml  imap ,xml <?xml version="1.0"?>

  " begin MXML-specific
  autocmd BufRead *.mxml imap ,app <mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
  autocmd BufRead *.mxml imap ,ti <mx:TextInput id="
  autocmd BufRead *.mxml imap ,btn <mx:Button label="
  autocmd BufRead *.mxml imap ,scr <mx:Script
  autocmd BufRead *.mxml imap ,sty <mx:Style
  autocmd BufRead *.mxml imap ,dp dataProvider="
  autocmd BufRead *.mxml imap ,vb <mx:VBox
  autocmd BufRead *.mxml imap ,hb <mx:HBox
  autocmd BufRead *.mxml imap ,vs <mx:ViewStack
  " end MXML-specific
endif

Should probably add more now since I've learnt so much MXML. :)

Manish


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to