From f5a3fd4f37c3a2d2165cc986d2964562046f7a77 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 18 Jan 2015 00:10:45 +0000 Subject: [PATCH] python py_compile --- etc/vim/source/functions.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/vim/source/functions.vim b/etc/vim/source/functions.vim index 1bc0c86f..7132b0ff 100644 --- a/etc/vim/source/functions.vim +++ b/etc/vim/source/functions.vim @@ -98,6 +98,9 @@ func! FileInit(...) let g:File['check'] = "php5 --define error_reporting=22519 --define display_errors=1 --define log_errors=1 --define html_errors=1" " E_ALL & ~E_NOTICE & ~E_DEPRECATED " todo - NB 11.12.12 if match(expand('%'),'/izideal/') let g:File['check'] = g:File['check'] . ' -z ~izideal/include/default.inc.php' + elseif (g:File['type'] == 'python') + let g:File['check'] = 'python -m py_compile' + elseif (g:File['type'] == 'perl') let g:File['check'] = 'perl -c -w' -- 2.47.3