global !p def complete(t, opts): if t: opts = [m[len(t):] for m in opts if m.startswith(t)] if len(opts) == 1: return opts[0] return '(' + '|'.join(opts) + ')' endglobal snippet template "template for new program" A *----------------------------------------------------------------- IDENTIFICATION DIVISION. PROGRAM-ID. ${1:Title}. *AUTHOR. ${2:Yannick Reiß}. *CONTENT. ${3:Beschreibung}. *----------------------------------------------------------------- *----------------------------------------------------------------- DATA DIVISION. *------------------------- FILE SECTION. *------------------------- WORKING-STORAGE SECTION. $4 *----------------------------------------------------------------- *----------------------------------------------------------------- PROCEDURE DIVISION. $0 STOP RUN. *----------------------------------------------------------------- endsnippet snippet display "Display a contant or Variable" A DISPLAY ${1:"Hello World!"}. $0 endsnippet