vim - netrw 在 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.
推荐阅读
- ruby-on-rails - 无法在 Rails 控制台中既不需要“rails_helper”也不需要“spec_helper”
- python - 会话的位置以及如何检索它
- python - 错误:存储桶名称必须匹配正则表达式“^[a-zA-Z0-9.\-_]{1,255}$”
- javascript - JavaScript双递归调用,如何传回结果?
- c - 如何使用c中的文件搜索结构数组中的特定数据
- ios - Xamarin 表单:如何更改 IOS 应用的顶部颜色(手机电池图标处的颜色)
- python - Tkinter 按钮未定义,因为存在于函数中
- javascript - 未知数据源传输类型“json”
- javascript - 当按钮是禁用事件处理的 DIV 时,是否可以通过 VBA 模拟按钮单击?
- verilog - 使用 for 循环时如何修复推断锁存器错误?