Ⅰ. 插件描述
Complete Ada-Mode as Vim-Ball or Tar.bz2Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/ada-bundle'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/ada-bundle'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/ada-bundle'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Ada-Bundle
Ⅳ. 文档说明
Contains all files for the new Ada mode. It also has a vim help file which you can call with
:help ada.txt.
Included is:
- Syntax highlight
- Auto indenting
- Tag searching
- Classic code completion
- Omni code completion
- Online help
For some functionality you need a ctags programm. You can user either "gnat xref -v" or a patched [1] version of the exuberant Ctags [2].
Don't forget to actualy activate filetype and syntax support:
:filetype plugin indent on
:syntax enable
The Ada mode can be be further extened with the following Scripts:
- backup.vim, vimscript#1537
- rainbow_parenthsis.vim, vimscript#1561
- nerd_comments.vim, vimscript#1218
- matchit.vim, vimscript#39
- taglist.vim, vimscript#273
The GNU Ada project [3] offers ready patched binary rpm's including the Ada-Mode, all the scripts mentioned above and Ada aware exuberant Ctags for easy installation.
Reports errors to: http://code.google.com/p/vim-scripts/issues/list
Discuss improvements on: http://groups.google.com/group/vim_scripts
[1] vimscript#1535
[2] http://ctags.sourceforge.net
[3] http://gnuada.sourceforge.net