asyncrun.vim icon indicating copy to clipboard operation
asyncrun.vim copied to clipboard

遇到`input()`的时候会报错:‘EOF when reading a line’ & anaconda支持

Open Firestar-Reimu opened this issue 5 years ago • 2 comments

map <F5> :call RunPython()<CR>
function! RunPython()
    exec "w"
    if &filetype == 'python'
            if search("@profile")
                    exec "AsyncRun kernprof -l -v %"
                    exec "copen"
                    exec "wincmd p"
             elseif search("set_trace()")
                     exec "!python3 %"
             else
                    exec "AsyncRun -raw python3 %"
                    exec "copen"
                    exec "wincmd p"
            endif
    endif
endfunc

这样在遇到input()的时候会报错:‘EOF when reading a line’,但是我已经打了%

以及,我用anaconda作为默认python时应该用什么语句?

Firestar-Reimu avatar Oct 17 '20 17:10 Firestar-Reimu

因为 quickfix 窗口并不能接受任何输入。

你可以试试:

:AsyncRun -mode=term -pos=tab   python3 %

anaconda 的话,把 python 换成完整指向 anaconda python 的路径。

skywind3000 avatar Oct 18 '20 05:10 skywind3000

我发现let g:asyncrun_open = 0并不能关掉quickfix窗口,而我并不想让它显示,怎么办呢(自动不显示那种)

Firestar-Reimu avatar Oct 18 '20 10:10 Firestar-Reimu