Just noticed that the #netrw plugin repository got archived: https://github.com/saccarosium/netrw.vim
Was it merged into vim or what is happening?
Just noticed that the #netrw plugin repository got archived: https://github.com/saccarosium/netrw.vim
Was it merged into vim or what is happening?
I keep coming back to this article when I need a refresher on VIM's Netrw.
#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.
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" …
[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.