0

I don't get why when I type something like :

:! bash -ic 'p4 diff %:p'  

My Vim get interrupted and I get

[3]+  Stopped                 vim ~/.vimrc

as a consequence I have to put that job in foreground to see the effect of the command.

Do you know how can I solve this annoying issue ?

1
  • Why doesn't :! p4 diff %:p work for you?! Commented Sep 9, 2014 at 9:26

1 Answer 1

1

You are telling Vim to run an interactive command so it has no choice but to suspend itself to allow you to do what you want.

It's hard to be sure without more information about your setup but this command:

:!p4 diff %:p

should be enough to run p4 diff on the the current file without side-effects.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.