What happens now: When I'm in Vim, and execute the :Vexplore
command, a new pane appears where can I browse files using netrw
. When I open a file in the netrw
pane, it opens in the right pane (so not in the netrw
pane) like I configured it using let g:netrw_browse_split = 4
.
What I would like to happen:
However, I would like the netrw
pane to close immediately after the new file is opened in the right pane. Is that possible?
This comment on Reddit mentions the use of an autocommand, but I'm not familiar enough with vim scripts in order to create that unfortunately.