I have a permanent window for file explorer enabled by
netrw_altv=1 option. The problem is that when I run vim with file or directory as an argument the window with file explorer is focused. How can I use
VimEnter to automatically focus on the window with the file content (the window on the right) if file is passed as an argument with vim and leave vim focused on the windows with the file explorer (the window on the right) if directory is passed as an argument with vim?
I mean, when calling vim like that:
And when calling vim with a file as an argument:
_______________| This window
_______________| should be