diff options
| author | jdhao <jdhao@hotmail.com> | 2019-12-09 16:22:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-09 16:22:19 +0800 |
| commit | 5771a86c0d77d0c56791b78046e314103f526721 (patch) | |
| tree | c6e50d003ca4d118391b0ffcbec941e13f93c131 /after | |
| parent | 417fb450a246735bb0bbabc187f2e57b026e600c (diff) | |
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.
Diffstat (limited to 'after')
| -rw-r--r-- | after/ftplugin/python.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 <silent> <F9> :AsyncRun python "%"<CR> + nnoremap <silent> <F9> :AsyncRun python -u "%"<CR> endif |
