1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

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.
This commit is contained in:
jdhao 2019-12-09 16:22:19 +08:00 committed by GitHub
parent 417fb450a2
commit 5771a86c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,3 @@
if exists(':AsyncRun')
nnoremap <silent> <F9> :AsyncRun python "%"<CR>
nnoremap <silent> <F9> :AsyncRun python -u "%"<CR>
endif