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

How to accept std:cin for c++

Open DongqiShen opened this issue 6 years ago • 3 comments

When I run the c++ file, it just went to the end. It seems to skip the cin part. How could fix it out? Thanks

DongqiShen avatar Jun 28 '18 14:06 DongqiShen

quickfix 不支持 stdin,stdin 被关闭了。

skywind3000 avatar Jun 28 '18 15:06 skywind3000

好的,谢谢,感觉这个插件很棒,美中不足就是不能输入,Thanks

DongqiShen avatar Jun 28 '18 15:06 DongqiShen

最近發現可以在vim中使用終端機 加了這兩行設置 set termwinsize=10x0 nnoremap <F2> <C-w><C-o>:below term "%:p:h/%:t:r"<CR> "看起來"就跟在quickfix中做標準輸入一樣

misakisuna705 avatar Dec 09 '18 17:12 misakisuna705