Problem:
- Open Vim
- Type
:Lex
to open netrw file explorer and open a file in a vertical split usingv
- As you can see in the image below, the space allocated to the split is tiny.
- This only happens on the first time netrw file explorer is opened. If I close the file explorer and follow step 2 again and open a file again using
v
, I get the expected behaviour as shown in the 2nd image below.
.vimrc settings:
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_altv = 1
let g:netrw_winsize = 25
noremap <C-x> :Lex<CR>
autocmd FileType netrw setl bufhidden=wipe