sponsor Vim development Vim logo Vim Book Ad

autoload/adacomplete.vim : Omni-Competion for Ada (inactive, replaced by vimscript#1609)

 script karma  Rating 21/6, Downloaded by 1726  Comments, bugs, improvements  Vim wiki

created by
Martin Krischik
script type
This plugin is superseded by vimscript#1609.

Omnicompletions which uses tags database created by "gnat xref -v >tags".

It is a lot simpler then the other omnicompletion plugins which is quite helpfull if you plan to write your own.

NOTE: "gnat xref -v" is very tricky to use as it has almost no diagnostic output - If nothing is printed then usualy the parameters are wrong. Here some important tips:

1) You need to compile your code first and use the "-aO" option to point to your .ali files.
2) "gnat xref -v ../Include/adacl.ads" won't work - use  the "gnat xref -v -aI../Include adacl.ads" instead.
3) "gnat xref -v -aI../Include *.ad?" won't work - use "cd ../Include" and then "gnat xref -v *.ad?"
4) Project manager support is completely broken - don't even try "gnat xref -Padacl.gpr".
5) VIM is faster when the tags file is sorted - use "sort --unique --ignore-case --output=tags tags" .
6) Remember to insert "!_TAG_FILE_SORTED 2 %sort ui" as first line.

Reports errors to: http://code.google.com/p/vim-scripts/issues/list
Discuss improvements on: http://groups.google.com/group/vim_scripts
install details
Into the autoload with it.
Install a current ftplugin for ada as well.
Create a tags file using "gnat xref -v >tags".

Use together with:

vimscript#1554 autoload/adacomplete.vim
vimscript#1548 ftplugin/ada.vim
vimscript#1353 syntax/ada.vim

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
adacomplete.vim 2.1 2006-05-27 7.0 Martin Krischik Some correction regarding the use of attributes. Correct use of the ' is a bit tricky. Also improved the search for begin of word which was quite buggy.

I have created a complete description on how the omni completion works on wikibooks [1] if you like to know how it all works or prehaps like to create omni completion for another lanugage.

[1] http://en.wikibooks.org/wiki/Learning_vi:Vim#Onmi_Completion
adacomplete.vim 2.0 2006-05-25 7.0 Martin Krischik New coordinated release for all Ada plugins. Binary releases which are patched with all Ada plugins is available from the GNU Ada project [1]

[1] http://gnuada.sourceforge.net
adacomplete.vim 1.0 2006-05-22 7.0 Martin Krischik Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.