默认使用 :Lexplore 而不是 :Explore

问题描述 投票:0回答:1

当我运行命令

vim .
时,它默认使用
:Explore
打开vim,是否可以将其更改为使用
:Lexplore

P.S.:我特意请求命令

vim .

vim netrw
1个回答
0
投票

作为部分解决方案,可以使用 Vim 的

-c
+
参数(参见
:help -c
)在命令行上传递 Ex 命令来调用
:Lexplore
,如下所示:

vim +Lexplore

这将打开 Vim 有两个窗口,左边的窗口带有

netrw
,右边的窗口显示一个新的缓冲区。

© www.soinside.com 2019 - 2024. All rights reserved.