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

Feature request: deleting file is not deleting buffer #77

Open
Migacz85 opened this issue Mar 24, 2019 · 3 comments
Open

Feature request: deleting file is not deleting buffer #77

Migacz85 opened this issue Mar 24, 2019 · 3 comments

Comments

@Migacz85
Copy link

I found out that when I had opened buffers, I moved files from one directory to another.
Vim was unaware of this and buffers of deleted files were still there. And this produced confusion.
Is there a way that after deleting or moving files buffers will be deleted aswell ?
It would be perfec also if fugitive will also know that files were deleted or moved.

Is that possible to implement this ? Ranger is just brilliant to manipulating files. It would be perfect to implement this well with vim

@francoiscabrol
Copy link
Owner

Yes I understand the problem, it's a duplicate of #72. However I don't see how to make vim aware of outside changes...

@Migacz85
Copy link
Author

Ok, Is this even possible to run some vim function when the ranger is turned on ?

@francoiscabrol
Copy link
Owner

In neovim yes but it's not user friendly. You can still switch to the vim's command mode with esc and then run any vim command while ranger stays opened in a terminal buffer. Then you can come back to ranger by re-switching to the insert mode by pressing i. But switching between neovim's modes while ranger is opened is not a nice flow.
With the regular vim, you can't go back to vim without closing ranger.

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

2 participants