sponsor Vim development Vim logo Vim Book Ad

PLI Auto Complete : Complete Member Variable For z/OS Enterprise Compiler PLI

 script karma  Rating 5/2, Downloaded by 630  Comments, bugs, improvements  Vim wiki

created by
Ricky Wu
 
script type
ftplugin
 
description
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
 
install details
Put it into $VIM/vimfiles/autoload
 

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
plicomplete.vim 0.2 2009-05-26 7.0 Ricky Wu More easy to setup. Only need add global var.
plicomplete.vim 0.1 2009-05-20 7.0 Ricky Wu Initial upload
ip used for rating: 3.22.242.141

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.
   
Vim at Github