PLI Auto Complete


Ⅰ. 插件描述

Complete Member Variable For z/OS Enterprise Compiler PLI

Ⅱ. 基本信息

创建日期:  2009-05-20
使用用户:  1
Github星:  1
插件作者:  Ricky Wu

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/PLI-Auto-Complete

Ⅳ. 文档说明

Complete member variable for PL/I filetype on mainframe, inlcude variables in copybooks.
Currently support 2 types of copybook, e.g. normal copybook and maps in diffrent folders.

Step 1
Change .vimrc:
let g:CpyCompleteInd     = 1            "Enable complete for copybook, other value will disable
let g:CpyIdentification  = "CPY"        "Copybook Include Method
let g:CpyDir             = "Folder1"    "Folder Of Copybook, Include The Last /
let g:MapIdentification  = "MAP"        "Maps Include Method
let g:MapDir             = "Folder2"    "Folder Of Maps, Include The Last /
if has("autocmd")
   au FileType pli setl cfu=plicomplete#Complete
endif

The Include Method should be change base on yours,
like %INCLUDE CPY(COPYBOOK); it should be CPY

Step 2
Press <C-X><C-U> after type one dot,the variables should be poped up.

Screen Shot:http://photo1.bababian.com/upload13/20090505/F9FC04A492D5138A202EA67F368AF38F.jpg

添加新评论