I want to create a netrw sidebar whenever I open a new tab. I tried this:
au TabNew,VimEnter *
\ | :Vex
\ | :vert res 40
but this makes a layout like this when I :tabe file2
:
tab1: tab2:
netrw|file1 file2|file1
It works fine with TabEnter, but then it opens a new sidebar whenever I switch tabs. How can I fix this?