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

Add :RangerCD command #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cttttt
Copy link

@cttttt cttttt commented Aug 13, 2019

What's the problem?

It would be nice if I could use ranger.vim to change directories in a more visual way, which is currently the only reason I still use NerdTree. A fork of ranger.vim, https://github.com/rafaqz/ranger.vim, provides this feature, but I like this fork's simplicity.

How does this fix it?

This change enhances OpenRangerIn() so that it can be made to do more than just choose files via Ranger. It also adds a command, :RangerCD that spawns Ranger and changes to the last directory encountered.

Run RangerCD to spawn ranger and change to the last directory
encountered.
@OsKaR31415
Copy link

That would be a really nice feature !
It is really boring to need to use first . ranger to go to the correct directory and then to start vim. This is really the command I need !

Sadly, the other plugin you mentioned : rafaqz/ranger.vim does not allow you to keep netrw as the default, so it erases :Lexplore and :Hexplore...

This feature would be really useful !

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

Successfully merging this pull request may close these issues.

2 participants