Skip to main content

How to compile a program and open itthe output in a vertical terminal window?

How can I write a command that does the following?

  • With aone mapping, compile and/or run a program based on the filetype (*.c, *.cpp, *.js, *.py, etc.), and open a vertical terminal window with the output.
  • With another mapping, close the vertical terminal window.

If anyone know vimscript very well please write down answer.

I know you can open the terminal next to Vim with tmux, but I want to do it with with just Vim.

How to compile a program and open it in a vertical terminal window?

How can I write a command that does the following?

  • With a mapping, compile and/or run a program based on the filetype (*.c, *.cpp, *.js, *.py, etc.), and open a vertical terminal window with the output.
  • With another mapping, close the vertical terminal window.

If anyone know vimscript very well please write down answer.

I know you can open the terminal next to Vim with tmux, but I want to do it with just Vim.

How to compile a program and open the output in a vertical terminal window?

How can I write a command that does the following?

  • With one mapping, compile and/or run a program based on the filetype (*.c, *.cpp, *.js, *.py, etc.), and open a vertical terminal window with the output.
  • With another mapping, close the vertical terminal window.

I know you can open the terminal next to Vim with tmux, but I want to do it with just Vim.

I request that if any one know vimscript can write full code to what to do.
Source Link
Visrut
  • 125
  • 6

How can I write a command that does the following?

  • With a mapping, compile and/or run a program based on the filetype (*.c, *.cpp, *.js, *.py, etc.), and open a vertical terminal window with the output.
  • With another mapping, close the vertical terminal window.

If anyone know vimscript very well please write down answer.

I know you can open the terminal next to Vim with tmux, but I want to do it with just Vim.

How can I write a command that does the following?

  • With a mapping, compile and/or run a program based on the filetype (*.c, *.cpp, *.js, *.py, etc.), and open a vertical terminal window with the output.
  • With another mapping, close the vertical terminal window.

I know you can open the terminal next to Vim with tmux, but I want to do it with just Vim.

How can I write a command that does the following?

  • With a mapping, compile and/or run a program based on the filetype (*.c, *.cpp, *.js, *.py, etc.), and open a vertical terminal window with the output.
  • With another mapping, close the vertical terminal window.

If anyone know vimscript very well please write down answer.

I know you can open the terminal next to Vim with tmux, but I want to do it with just Vim.

How to compile a program and open it in a vertical terminal window?

Source Link
Visrut
  • 125
  • 6
Loading