I have figured out how to open a file browser in a split, using the following in vimrc:
let g:netrw_liststyle = 3 let g:netrw_banner = 0 let g:netrw_browse_split = 4 let g:netrw_winsize = 25 let g:netrw_altv = 1 augroup ProjectDrawer autocmd! autocmd VimEnter * :Vexplore augroup END
This is nice since I can then work with multiple files without having to exit and reopen vim all the time.
The issue is when I want to edit a specific file. Then I do not need or want the file browser.
So my question is: is there a way to wrap this in an if statement which would only open netrw in a split if the argument to
vi is not a file:
vi path/to/folder/- Include
vi path/to/folder- Include
vi path/to/folder/my_file- Skip