ranger.vim icon indicating copy to clipboard operation
ranger.vim copied to clipboard

Feature request: deleting file is not deleting buffer

Open Migacz85 opened this issue 5 years ago • 3 comments

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

Migacz85 avatar Mar 24 '19 17:03 Migacz85

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

francoiscabrol avatar Apr 06 '19 16:04 francoiscabrol

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

Migacz85 avatar Apr 13 '19 21:04 Migacz85

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.

francoiscabrol avatar May 27 '19 20:05 francoiscabrol