You are not logged in.

#1 2010-09-29 14:21:55

rennis250
Member
Registered: 2009-07-26
Posts: 18

[SOLVED] Open file in current Vim session

Hello,

I'm wondering if it's possible to send a file to Vim and have it opened in a new tab within a currently running session/instance.  I'm using the Awesome WM and I'd ultimately like to have the Ranger file manager running in one tag and have it send opened files to a master Vim session running in another tag.

Thanks for any help,
Rob

Last edited by rennis250 (2010-10-27 22:35:57)

Offline

#2 2010-09-29 14:37:59

doom_phd
Member
From: US
Registered: 2009-08-11
Posts: 25

Re: [SOLVED] Open file in current Vim session

If you mean gVim then I think you can call gvim --remote filename and it should open it in a currently running instance of gVim


Don't you worry about blank. Let me worry about blank
I did do the nasty in the past-y.
Pizza delivery for... I. C. Weiner. Aww... I always thought by this stage in my life I'd be the one making the crank calls.

Offline

#3 2010-09-29 15:14:40

awkwood
Member
From: .au <=> .ca
Registered: 2009-04-23
Posts: 91

Re: [SOLVED] Open file in current Vim session

Try "--remote-tab-silent".

More info here  http://vimdoc.sourceforge.net/htmldoc/remote.html

Offline

#4 2010-09-29 15:46:04

rennis250
Member
Registered: 2009-07-26
Posts: 18

Re: [SOLVED] Open file in current Vim session

Ah, I was aware of the gVim command and was looking for a terminal implementation.  Thanks, fellas!  It looks like --remote-tab-silent will fit into my work flow nicely.

Thanks,
Rob

Offline

Board footer

Powered by FluxBB