Skip to content

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