On Thursday, August 9, 2012 5:34:05 AM UTC-5, Christian Brabandt wrote:
> Hi Sepp!
> 
> 
> 
> On Do, 09 Aug 2012, Sepp Tannhuber wrote:
> 
> 
> 
> > Dear all,
> 
> > 
> 
> > I use the following function from the ranger manual:
> 
> > fun! RangerChooser()
> 
> > exec "silent !ranger --choosefile=/tmp/chosenfile" . expand("%:p:h")
> 
> > if filereadable('/tmp/chosenfile')
> 
> > exec 'edit ' . system('cat /tmp/chosenfile')
> 
> > call system('rm /tmp/chosenfile')
> 
> > endif
> 
> > redraw!
> 
> > endfun
> 
> > map ,r :call RangerChooser()<CR>
> 
> > 
> 
> > It is working well with vim.
> 
> > Is it possible to invoke ranger from gvim as well? If yes how can I change
> 
> > the above function?
> 
> 
> 
> For gvim, run ranger by first calling a xterm (or whatever terminal you 
> 
> prefer), e.g. for xterm use something like this:
> 
> 

I'm curious, why is this necessary? I run console apps from gvim on Windows all 
the time without explicitly bringing up a cmd.exe shell. Apparently there's 
some problem running "ranger" directly from gvim, what is it?

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to