Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
run programe from gvim
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bfkeats
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 268

PostPosted: Fri May 12, 2006 7:18 pm    Post subject: run programe from gvim Reply with quote

I just upgraded to gvim 7. I used to be able to start a program like kdvi from gvim by typing,
Code:
:!kdvi &

This doesn't work anymore unless I run gvim from a terminal. The program comes up if I removed the ampersand, but then I can't get control of gvim back until I close the program. Any ideas?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri May 12, 2006 10:25 pm    Post subject: Reply with quote

Maybe try a subshell in the background? Make sure it inherits the environment.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
bfkeats
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 268

PostPosted: Mon May 15, 2006 3:05 pm    Post subject: Reply with quote

I'm not familiar with the concept of a subshell. From http://gentoo-wiki.com/MAN_bash, I understand I can do this by putting the command inside round brackets.

Code:
!(kdvi&)
I get the same result as before. Is that what you mean?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon May 15, 2006 9:38 pm    Post subject: Reply with quote

Yeah. I just wanted to see if that worked or not. I wasn't expecting it to, but it was worth a try.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
bfkeats
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 268

PostPosted: Wed May 17, 2006 4:48 pm    Post subject: Reply with quote

I've filed a bug here if anyone is interested in following this.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum