Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to go back ranger? #81

Open
z-huabao opened this issue Aug 21, 2019 · 6 comments
Open

how to go back ranger? #81

z-huabao opened this issue Aug 21, 2019 · 6 comments

Comments

@z-huabao
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants