flashdevelop.vim


Ⅰ. 插件描述

This plugin aims to provide productive features for editing ActionScript 3.0 files inside your VIM.

Ⅱ. 基本信息

创建日期:  2012-02-26
使用用户:  4
Github星:  16
插件作者:  Endel Dreyer

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'endel/flashdevelop-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'endel/flashdevelop-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'endel/flashdevelop-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/endel/flashdevelop.vim

Ⅳ. 文档说明

FlashDevelop features for VIM Build Status

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";)
    • If inside a method call, that was not defined yet:

      • Ask for access level and create that method.

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.

添加新评论