Open Netrw in a new tab

8/22/2021

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

👈 All blog posts📝 Edit this page

🤞

Have a heavenly day