gpt4 book ai didi

python - VIM + netrw : open multiple files/buffers in the same window

转载 作者:太空宇宙 更新时间:2023-11-04 10:24:04 25 4
gpt4 key购买 nike

我最近使用 NERDTreepython-mode 切换到 VIM。由于 NERDTree 似乎与 python-mode 有冲突并且如果我关闭多个缓冲区中的一个会破坏我的布局,我决定切换到 netrw 因为它随 < em>VIM 无论如何。

但是打开文件后,如果我通过键入 :E 打开 netrw并通过点击 <enter> 打开另一个文件VIM 关闭旧的并在同一窗口中打开新的。如果我点击 <o>在同样的情况下,VIM 添加了另一个缓冲区,但在水平分割中添加了一个新窗口。

如何使用 netrw 将多个文件/缓冲区添加到缓冲区列表并仅在事件窗口中显示最后添加的缓冲区(没有新的拆分)? #编辑#

提前致谢!我希望我没有遗漏手册中的一些琐碎内容.. ;-)

最佳答案

But having a file opened, if I open netrw by typing :E and open another file by hitting <enter> VIM closes the old one and opens the new one in the same window.

[...]

How can I open multiple files/buffers in the same window using netrw?

缓冲区被添加到一个列表,缓冲区列表,并且随机显示在一个或多个标签页的一个或多个窗口中。

由于一个窗口只能显示一个缓冲区,同时查看两个单独的缓冲区的唯一方法是将它们显示在两个单独的窗口中。这就是 netrw 的 ov允许你做。

当您使用 <CR> 时编辑一个文件,之前的缓冲区不会消失:它仍然在缓冲区列表中,可以用 :bp[revious] 访问。 .

关于python - VIM + netrw : open multiple files/buffers in the same window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30533263/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com