Ⅰ. 插件描述
vim omnifunc for flex (actionscript and mxml).Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yuratomo/flex-api-complete'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yuratomo/flex-api-complete'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yuratomo/flex-api-complete'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yuratomo/flex-api-complete
Ⅳ. 文档说明
flex-api-complete
Vim omnifunc for flex api.
Install
Set your .vimrc as follows.
" Vundle
Bundle 'git://github.com:yuratomo/flex-api-complete.git'
Settings
Set your .vimrc as follows.
autoload flex-api-complete
au BufNewFile,BufRead *.as setl omnifunc=flexapi#complete
au BufNewFile,BufRead *.mxml setf xml
au BufNewFile,BufRead *.mxml setl omnifunc=mxml#complete
show status refarence
au CompleteDone *.as call flexapi#showRef()
au BufNewFile,BufRead *.as inoremap <expr> <c-down> flexapi#nextRef()
au BufNewFile,BufRead *.as inoremap <expr> <c-up> flexapi#prevRef()
balloon help
if has("balloon_eval") && has("balloon_multiline")
au BufNewFile,BufRead *.as setl bexpr=flexapi#balloon()
au BufNewFile,BufRead *.as setl ballooneval
endif