From 7a4981d8cc720d64f1fadb5d74820a4dee422b29 Mon Sep 17 00:00:00 2001
From: Kevin Lyda <kevin@ie.suberic.net>
Date: Tue, 19 Sep 2017 15:45:16 +0100
Subject: [PATCH] Prepare to load module better.

Developing right now, but prepare to load module better in the future.
---
 plugin/cobol.vim | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/plugin/cobol.vim b/plugin/cobol.vim
index 10510e4..72893d2 100644
--- a/plugin/cobol.vim
+++ b/plugin/cobol.vim
@@ -16,6 +16,15 @@ endif
 
 let s:path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
 
-function! HelloWorld()
+function! LoadCobolPython()
+  !exists('g:cobol_py_loaded')
+    exec 'py3file ' . s:path . '/cobol.py'
+    let g:cobol_py_loaded = 1
+  endif
+endfunction
+
+function! Renumber()
   exec 'py3file ' . s:path . '/renumber.py'
 endfunction
+
+" call LoadCobolPython()
-- 
GitLab