francoiscabrol / ranger.vim

Ranger integration in vim and neovim
669 stars 58 forks source link

how to go back ranger? #81

Open z-huabao opened 5 years ago

z-huabao commented 5 years ago

when I open a file from ranger use neovim, how can I go back to ranger like \q ? if use :q, it will all exit.

I know we can use a map :Ranger but I am not sure my vim is open whether from ranger or shell, If I open my vim from shell, \q to ranger make not sense.

francoiscabrol commented 5 years ago

I am not sure to understand your workflow. If you open ranger from vim then you can quit ranger by just pressing q. This plugin is just about opening ranger from vim. If you open vim from ranger then it is an other flow that is not in the scope of this plugin.

z-huabao commented 5 years ago

no, what I say is about exit vim back to ranger.

em... other way, we often use <C-o> back in vim, but <C-o> can't back to ranger while we open vim file from ranger.

francoiscabrol commented 5 years ago

I am confuse with exit vim back to ranger. If you use the plugin ranger.vim that mean you open ranger inside vim and not the reverse. I think your problem come from the fact you open first ranger, then you open vim by opening a file from ranger and then you open an other ranger inside vim. If you want to browse files directly from the shell, and you want to use ranger.vim, I would recommend you to open vim with the command nvim . that open directly ranger inside vim.

z-huabao commented 5 years ago

yet, I often use nvim .

now the plugin show the workflow: open ranger.vim --> select and open a file --> <C-O> back --> to the another history file ???

don't you think it is unreasonable?

kevinhwang91 commented 4 years ago

yet, I often use nvim .

now the plugin show the workflow: open ranger.vim --> select and open a file --> <C-O> back --> to the another history file ???

don't you think it is unreasonable?

I know it's a shame to promote my plugin here, but I think https://github.com/kevinhwang91/rnvimr can solve your problem. (I had seen that you are using neovim.)

z-huabao commented 4 years ago

yet, I often use nvim . now the plugin show the workflow: open ranger.vim --> select and open a file --> <C-O> back --> to the another history file ??? don't you think it is unreasonable?

I know it's a shame to promote my plugin here, but I think https://github.com/kevinhwang91/rnvimr can solve your problem. (I had seen that you are using neovim.)

Great Job! That is what I need, thank you every much!