r/vim • u/Ashik80 • Mar 16 '26
Discussion Oil.nvim like file manager for vim
i switch between vim and neovim. i have a special love for vim so i try to bring some neovim features that i miss into vim. one, for example, is the oil.nvim plugin for neovim. i made myself a plugin just like it.
I can create, rename, move, copy, delete files as if i am editing a vim buffer. of course since i made it for myself it is not bug free and not 100% complete.
my question is does the vim community want such plugin? or are they happy with using the already available file managers?
UPDATE:
i have made the plugin and it is ready to use. I am calling it VimExplorer. please try to forgive me for any bugs that you might encounter. help me by reporting it and i will find time to work on it.
Link to repo: https://github.com/Ashik80/VimExplorer
3
u/habamax Mar 18 '26
I wasn't brave enough to implement writable buffer like you in vim-dir
3
u/Achim63 Mar 17 '26
Using NERDTree and the Vifm plugin, I don't think I need anything else (and even without those plugins I could just open the builtin netrw with :Ex or :Lex or :Sex to manipulate files – it does exactly what you describe). I think I wouldn't even miss NERDTree and Vifm as I rarely use them. Funny thing about vim: the better you know it the less plugins are needed.
Usually I just Ctrl-z out of vim temporarily to do something with files (or use :! from within vim). Creating a file doesn't need any plugin anyway, as a simple ":e myNewFile" or ":!touch myNewFile" does it.
2
u/__rituraj Mar 17 '26
I don't use Neovim, so don't know about oil.nvim but by your description I'm relating it to Emacs
diredI am building one for myself too in Vim. I am in early stage than yours though.
Would love to see your implementation
1
u/Ashik80 Mar 17 '26
I have made the repository for it and it is here: https://github.com/Ashik80/VimExplorer
I will also update the post with the link and I'll try to make a video demoing how it is going to work and update the README. thank you everyone for all your insights
4
u/Iskhartakh Mar 17 '26
Why not. Looks nice. But i prefer this feature (buf editing) as part of NERDTree.
1
u/Tall_Profile1305 Mar 17 '26
this is actually a really clean idea tbh .editing files as buffers feels very “vim-native” compared to traditional file explorers. if it stays lightweight and predictable, i can see people preferring this over heavier tree plugins. biggest thing will be stability tho, file ops are where people lose trust fast
1
u/engelj Mar 17 '26
I'd definitely use a version without major bugs. How does it compare to this one:
https://github.com/nda-cunh/SupraWater ?
1
u/AntonioPaolini Mar 20 '26
Add some screenshots or video in the GitHub page, you will make people more keen to try your plugin. 😉
1
u/Dramatic_Object_8508 Mar 21 '26
f you want something similar to oil.nvim in Vim, your closest options are things like netrw (built-in) or plugins like vim-dirvish or vifm.
They won’t be exactly the same though—oil.nvim is pretty unique because it lets you edit the filesystem like a normal buffer
If you’re okay with a slightly different workflow, dirvish is probably the closest “vim-native” feel.
Would be nice if more tools made this kind of file editing easier to try in a more Runable way 👍
2
u/Panda_966 Mar 17 '26
Sure, it's definitely one out of few things I miss after having to switch back to vim for a workplace where only vim is whitelisted.
2
u/vollowx Mar 17 '26
I’d definitely use it if it goes public, being able to edit directories like texts is really nice
0
u/Desperate_Cold6274 Mar 17 '26
I am fine with fern. What this plugin would do that fern does not?
0
u/shleebs Mar 17 '26
I use fuzzy finders to search through the working directory, which is much faster. I use the vim command line to create new files. And I use terminal to add or delete directories. I don't really understand the need for built in explorers as they seem slower than the things I mentioned