FlashDevelop features for VIM
This plugin aims to provide productive features for editing ActionScript 3.0 files inside your VIM.
It's actually on early development stage, but you can try it and improve it if you feel adventurous.
Requirements
- VIM with ruby bindings. (+ruby)
- sprout gem (
gem install sprout
) - vim-rooter plugin
- tlib plugin
- Custom ctags configuration, as described above.
ctags
flashdevelop.vim requires a custom ctags configuration for ActionScript files.
Copy the contents of support/ctags
into your ~/.ctags
Features currently avaible
Commands:
- :R - Swap between implementation and test classes.
- :make - Compilation through project-sprouts.
Keyboard bindings:
- Leader + N - Create a new class
- Leader + m - Autocomplete
- If cursor inside a class name:
- Create a class if it's name isn't defined, otherwise try to import it.
- If cursor inside 'override' statement:
- Show a list of parent class functions, to auto-complete for override.
- If cursor inside a uppercased word:
- Ask for access level to create a constant. (
private static var CONST : String = "const";
)
- Ask for access level to create a constant. (
- If inside a method call, that was not defined yet:
- Ask for access level and create that method.
- If cursor inside a class name:
The auto-complete functionality deeply uses tags
file generated with exuberant-ctags. It's important to always have your tags
updated.
TODO
The first goal of flashdevelop.vim is to implement the FlashDevelop generation features
License
This plugin is distributed under the MIT license. Please see the LICENSE file.