Hacker News new | ask | show | jobs
by tiptup300 776 days ago
does anyone know a I don't know module or extension for vim that jumps to a text based file browser.

one that I can navigate with keys up/down, enter to open that file or drill into that folder, backspace to go up a folder

maybe page up/down to flip through pages of files on the screen.

I used to work with iseries and I miss that workflow for editing files through cli

9 comments

I used netrw in the past but I switched to oil.nvim [1]. I highly recommend it. It lets you edit the your files and directories like a vim buffer. It also supports lsp rename which convenient.

[1] https://github.com/stevearc/oil.nvim

I used to use neo-tree but at this point I've settled into using netrw which is the default file browser. Just open vim in a directory rather than a file and you will boot right into netrw.

https://vonheikemen.github.io/devlog/tools/using-netrw-vim-b...

Netrw is quite good. Oil.nvim is by far the best if you're willing to monkey with a plugin.
I switched from netrw to NERDtree because netrw had mysterious bugs on macOS and I wanted a consistent interface. I'm not in love with it, but it does what I want.
I prefer to have nerdtree because it can be used like regular file explorer tree in an IDE.

When screen sharing with a colleague who might be unfamiliar with vim, it is easy for them to help us navigate if they see a tree compared to the magic of ctrl-p/fzf fuzzy search based on their hints.

Something like this maybe? https://github.com/luukvbaal/nnn.nvim
Oil is great: https://github.com/stevearc/oil.nvim

It just treats your file structure as a buffer

:help netrw

vim-vinegar for some netrw extras

:Ex