Ⅰ. 插件描述
Windows version of ctags for 4GL/4Js programsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/ctags-exe'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/ctags-exe'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/ctags-exe'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ctags.exe
Ⅳ. 文档说明
I compiled original Windows ctags source(http://ctags.sourceforge.net/) with a 4GL language extension to generate tags for functions(include report function), cursor IDs, prepared statement IDs, and global/module level variables. It works in XP and Vista according to my test.
It's even better when you use it with taglist.vim. It generate tags on the fly when you open 4gl programs in gvim/vim. For this add the following lines in taglist.vim. (Scroll down the plugin to a section where tag types are defined for different languages:)
" fgl language
let s:tlist_def_fgl_settings = 'fgl;f:function;c:cursor;s:prepared;v:variable'
If you want to compile yourself, here is how I compiled:
- Download and extract, if necessary, BCC55(free Boland compiler) and ctags source for Windows from the web and 4GL extentionfrom
- Create both bcc32.cfg and ilink.cfg in bin directory of BCC55 using Notepad. The contents of two files are the same as follows(of course, change the path if you have installed it in a different directory). Each file contains two lines.
-I"C:BorlandBCC55Include"
-L"C:BorlandBCC55Lib;C:BorlandBCC55LibPSDK"
- You will probably have to add a bin path to your system
- Download 4GL extenion from http://www.vim.org/scripts/script.php?script_id=587,and extract files(fgl.c ...) to your ctags source directory
- In ctags source directory, type "make -f mk_bc5.mak" to build ctags.exe