簡體   English   中英

外部輸出到vim緩沖區AFTER命令完成

[英]External output to vim buffer AFTER command completes

我目前在Windows 7上使用gVim

運行如下命令:

:r! racket %

我能夠大約一半時間成功讀取所需的輸出。 其余時間,什么也沒讀。 在外殼程序執行終止並實際生成一些輸出之前,在輸出中讀取vim似乎是一個問題。

有任何想法嗎?

來自:help :r!

:[range]r[ead] !{cmd}   Execute {cmd} and insert its standard output below
            the cursor or the specified line.  A temporary file is
            used to store the output of the command which is then
            read into the buffer.  'shellredir' is used to save
            the output of the command, which can be set to include
            stderr or not.  {cmd} is executed like with ":!{cmd}",
            any '!' is replaced with the previous command |:!|.

可能是您需要設置:help shellredir以包括stderr。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM