hut/ranger — Issue #28: Have ranger open new tab in gvim on text file opening
Author: sequenceGeek
Created: 2012-03-07 14:56:03+00:00
State: open

Hey there,

I know a lot of people like to have ranger open new buffers in vim when you "select" a text/script/etc file. I do this by changing my EDITOR env as such:

export EDITOR="vim -g --servername GVIM --remote-silent"

This will open a new buffer in the first gvim instance opened or else open gvim with the file in the current (only) buffer. I'm sure it can be hacked to work with vim instead of gvim...

I just though I'd mention it because I remember reading somewhere (I thought it was in the ranger documentation but I can't find it now) about a common vim function which lets you open ranger from vim. I prefer to have a separate screen for ranger and then open new buffers in vim from ranger and I thought it might be worth including in the documentation...