Reputation: 1290
When I execute :Vex
or something similar the netrw buffer open which is perfectly fine. However I want to open a file, chosen from netrw, in the netrw buffer that I opened with the :Vex
command. Is this possible?
Upvotes: 2
Views: 1751
Reputation: 2433
As suggested in the comments, check the current value of g:netrw_browse_split
using
:let g:netrw_browse_split
Then compare with the desired values from the docs (:h g:netrw_browse_split
):
*g:netrw_browse_split* when browsing, <cr> will open the file by:
=0: re-using the same window (default)
=1: horizontally splitting the window first
=2: vertically splitting the window first
=3: open file in new tab
=4: act like "P" (ie. open previous window)
Note that |g:netrw_preview| may be used
to get vertical splitting instead of
horizontal splitting.
=[servername,tab-number,window-number]
Given a |List| such as this, a remote server
named by the "servername" will be used for
editing. It will also use the specified tab
and window numbers to perform editing
(see |clientserver|, |netrw-ctrl-r|)
This option does not affect the production of
|:Lexplore| windows.
Upvotes: 2