Run :! in a real terminal

I can use pudb (ncurses Python debugger) in vim because, for example, it :!python %works in a real terminal window. I prefer to use gvim, but gvim runs :!python %in a virtual "dead end".

Is there a way to change this behavior so that gvim opens a separate terminal for commands? I think I remember how this works in the past.

+4
source share
1 answer

You can tell Vim about the launch of the terminal and run pythonin the terminal:

:!xterm -e 'python %; read'

readso that you can see the output of your script before exiting the terminal.

+5
source

Source: https://habr.com/ru/post/1598472/


All Articles