Open Netrw in a new tab

2021-08-22

By default, when you open a new tab, a new empty buffer will be created. This is a good default, but when I open a new tab, if I didn't specify any file, I want to access the Netrw.

You can do that piping commands. I mapped the command :tabnew \| :Explore to the <leader>nt:

nnoremap <leader>nt :tabnew \| :Explore<CR>

See in action at asciinema

#vim#neovim

📝 Edit this page