shell - Break the current program without exiting VIM -


when using vim, run programs using bang in command mode. is, use

:!<external shell command> 

to test code without exiting vim or alt-tabbing open shell. example, when writing java code, might like

:!java main 

or in c, maybe

:!cls & gcc -g -o main program.c file.c & main 

this works fine. vim window turns shell, program runs, , upon exit vim.

the issue when program hits infinite loop. stuck terminal displaying standard output , can't vim. control-c exits , need re-open vim , re-open files , it's big mess (especially if didn't save something!).

tl;dr there way stop internally-running externally-defined shell commands in vim?

in case, ctrl-c works fine.

i on vim 7.4 on ubuntu 14.04.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -