From 5771a86c0d77d0c56791b78046e314103f526721 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 9 Dec 2019 16:22:19 +0800 Subject: [PATCH] Fix an issue with AsyncRun.vim Change the output of Python from Buffered to Unbuffered so that we can see the command output immediately instead of waiting for the command to finish to see the output. See https://github.com/skywind3000/asyncrun.vim/wiki/FAQ#cant-see-the-realtime-output-when-running-a-python-script and https://stackoverflow.com/questions/107705/disable-output-buffering. --- after/ftplugin/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index a0bc092..67eb0c8 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -1,3 +1,3 @@ if exists(':AsyncRun') - nnoremap :AsyncRun python "%" + nnoremap :AsyncRun python -u "%" endif