vim - netrw 在 netrw 缓冲区中打开文件

标签 vim netrw

当我执行 :Vex 或类似的东西时,netrw 缓冲区打开,这完全没问题。不过,我想在使用 :Vex 命令打开的 netrw 缓冲区中打开一个从 netrw 中选择的文件。这可能吗?

最佳答案

按照评论中的建议,使用检查 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.

关于vim - netrw 在 netrw 缓冲区中打开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58874545/

相关文章:

vim - 在 vim session 中保存文件资源管理器面板

Vim 删除从字符开始到行尾

vim - VHDL 标签在带有 ctags+taglist 的 vim 中效率不高

vim - 为什么(Vim 插件)NetRW 浏览功能打不开目录和文件?

vim - 为什么 Vim 在编辑目录时会创建一个名为 "~"的空目录?

vim - 我可以在 netrw 中使用通配符吗?

javascript - Vim YouCompleteMe 模式未找到错误

vim - 如何在 WSL 中从 Vim 复制/粘贴

php - Symfony2 和 Vim 推荐

vim - 如何使用netrw-C?