node ninja
node ninja

Reputation: 33026

How to make a shell command persist when running from vim

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?

Upvotes: 3

Views: 263

Answers (1)

Hassek
Hassek

Reputation: 8995

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

Upvotes: 2

Related Questions