WolfgangMehner / vim-plugins

Vim plug-ins which offer support for various programming languages.
415 stars 96 forks source link

C-support: How to display output in gVim and not vimrun? (Windows 10) #44

Open aks2161989 opened 6 years ago

aks2161989 commented 6 years ago

I have installed c.vim on both Ubuntu gVim and Windows gVim. When I run a program on Ubuntu, the output is displayed at the bottom. If the program takes user input, it can be entered at the bottom. But in Windows, the output is always displayed in a new cmd called "vimrun"? Is there any way that gVim can show output in gVim itself?

WolfgangMehner commented 6 years ago

You can use the map \ro or the menu entry C/C++ -> Run -> output: VIM->buffer->xterm to set the output destination. If the output destination is "buffer", the output is redirected into a buffer. Unfortunately, this will prevent user interaction, see :help csupport-run-output.

The most general way to run a program right now is probably to run the executable using the new terminal feature. I have to yet automate this for the C plug-in.