Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a shell command persist when running from vim

Tags:

vim

hotkeys

I've got a script I made mapped to a key in vim.

It runs fine, except that immediately after, vim terminates the shell, and that's what causes the script to not work right.

How can I get this to work right?

like image 286
node ninja Avatar asked Nov 22 '25 06:11

node ninja


1 Answers

map your script using :!nohup COMMAND & and it should work. This will create a nohup.out file with any output from the command

like image 176
Hassek Avatar answered Nov 24 '25 23:11

Hassek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!