" cobol.vim - Some useful COBOL scripts. " Maintainer: Kevin Lyda " Version: 0.1 " TODO: add vim-scripts config if exists('g:loaded_cobol') || &cp echo "Already loaded." finish endif let g:loaded_cobol = 1 if !has('python3') echo "Missing python." finish endif let s:path = fnamemodify(resolve(expand(':p')), ':h') 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()