From: Nicolas Boisselier Date: Sun, 18 Jan 2015 00:10:45 +0000 (+0000) Subject: python py_compile X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f5a3fd4f37c3a2d2165cc986d2964562046f7a77;p=nb.git python py_compile --- 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'