Just noticed that the #netrw plugin repository got archived: https://github.com/saccarosium/netrw.vim

Was it merged into vim or what is happening?

#vim #neovim

GitHub - saccarosium/netrw.vim: Network oriented reading, writing, and browsing

Network oriented reading, writing, and browsing. Contribute to saccarosium/netrw.vim development by creating an account on GitHub.

GitHub

I keep coming back to this article when I need a refresher on VIM's Netrw.

https://shapeshed.com/vim-netrw/

#VimBeginners #vim #netrw

Vim: you don't need NERDtree or (maybe) netrw | George Ornbo

Vim's netrw file browser is good enough. With a few tweaks there is no need for plugin like NERDtree. For many tasks you may not even need netrw.

George Ornbo

In addition of using the minus key to open #Netrw for the current file's parent directory, I've now added some logic to Netrw buffers in my #Vim config that will try to position the cursor on the file that you've just edited, for additional continuity.

It's not perfect, but it's a start.

https://codeberg.org/scy/dotfiles/src/commit/f154f9604f3f8d66bd6bfa2854613e34b0c1f5ce/.vim/after/ftplugin/netrw.vim#L19-L37

dotfiles/.vim/after/ftplugin/netrw.vim at f154f9604f3f8d66bd6bfa2854613e34b0c1f5ce

dotfiles - My personal configuration files and helper scripts.

Codeberg.org

#Vim (and #Neovim) will trigger `au FileType netrw` autocommands, as well as commands in after/ftplugin/netrw.vim when

• selecting a directory in a #Netrw buffer
• selecting a file in a Netrw buffer (i.e. when _leaving_ Netrw)

but _not_ when first entering Netrw, e.g. by calling :Explore

Even though :set ft? will display 'netrw' no problem.

What the fuck?! I'm at a loss here, any hints greatly appreciated. 

Reproduce by doing

• nvim --clean
• :au FileType netrw echo 'netrw'
• :e .

With the minus key being the default #Netrw (and oil.nvim) shortcut for "change into parent directory", TJ DeVries suggested to globally (i.e. in normal edit buffers) map minus to "open Netrw (or oil) in the current window", and I think that's really clever.

Like, <CR> moves down into a directory or file, and - moves up into the parent directory – either of the directory you're currently browsing, or the file you're currently editing. Like a global "zoom out" key.

#Vim #Neovim

ughhh, #Netrw is such a mess.

But it comes with every installation of #Vim and #Neovim, so as someone who enjoys minimalism and likes to keep the number of additional plugins to a minimum, I feel like I should learn to use it and integrate it into my workflow.

But I've just used :Rexplore on a dirty file with 'nohidden' and it simply replaced my file's contents with the directory listing 😬

Also, don't make the mistake of looking at its source, or visiting the maintainer's "website" …

@Ladas552 @jbzfn But I did find this on how to get #nvimtree to work with #netrw (which is why I've disabled it), so maybe I'll give #neorg another go:

https://github.com/nvim-tree/nvim-tree.lua/discussions/1752#discussioncomment-4181974

How Can I Run nvim-tree And netrw? · nvim-tree nvim-tree.lua · Discussion #1752

Description the docs "strongly advise" disabling netrw but this disables scp://, rsync:// and all the other remote editing possibilities and i consider this a bug. i love nvim-tree but it would be ...

GitHub

[2/5]

#netrw to browse files, so it's very handy.

vim-scripts/BufOnly.vim – I work in vim all day, so I easily end up with many dozens or even hundreds of open buffers. This is the easiest way to close all but the currently active one.

*CODING*

cohama/lexima.vim - auto-closes (), {}, "" and some such pairs

alvan/vim-closetag – auto-closes and auto-indents #HTML/#XML tags. I write a lot of HTML/JSX, so this saves me a lot of keystrokes.

I read an article about why trying to use #vim (or GUI versions of #vim like #MacVim) with a side file explorer will actually make things harder and more unexpected than using netrw inside windows as it was supposed to.

Does anyone remember such an article? Please help me find it. 🤞🏼 🙏🏽

#vim #MacVim #netrw

Vim: you dont need NERDtree or (maybe) netrw