Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
homercles
Feb 14, 2010

If I vim edit a file I'm already editing, is there a way to tell the old vim session to close and the new vim session to load in whatever changes the old session had made?

So the workflow is:
  • vim edit a file on window 1
  • make some changes
  • vim edit the same file on window 2
  • window 1's vim closes
  • window 2's vim has window 1's changes (kind of like "screen -d -r" of an old attached screen session)

I just love opening new xterms and this habit will never change.

Adbot
ADBOT LOVES YOU

homercles
Feb 14, 2010

Thanks, that's pretty close to what I'm looking for. I'll have to figure out a way to introspect all gnome-terminal inactive tab names since they're not visible to wmctrl, but I have alternatives now.

  • Locked thread