当我执行 :Vex
或类似的东西打开netrw缓冲区,这是完全正常的。然而我想打开一个文件,从netrw中选择,在netrw缓冲区中,我打开用 :Vex
命令。这可能吗?
正如评论中所建议的那样,检查当前的 g:netrw_browse_split
使用
:let g:netrw_browse_split
然后与文档中的期望值进行比较(: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.