当我执行:Vex或类似的命令时,netrw buffer会打开,这是完全正常的。但是,我想打开一个从netrw中选择的文件,该文件位于我使用:Vex命令打开的netrw buffer中。这个是可能的吗?
发布于 2020-05-02 21:37:15
按照注释中的建议,使用以下命令检查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.https://stackoverflow.com/questions/58874545
复制相似问题