如何在不关闭窗口的情况下关闭缓冲区? [英] How can I close a buffer without closing the window?

查看:37
本文介绍了如何在不关闭窗口的情况下关闭缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vim 的多层视图(Windows、Buffers 和 Tabs)让我有点困惑.假设我拆分显示 (:sp),然后选择不同的缓冲区以在每个窗口中显示.现在我想关闭一个缓冲区,但我不希望窗口关闭(关闭后它可以显示列表中的下一个缓冲区或一个空缓冲区,没关系).我该怎么做?

Vim's multilayered views (Windows, Buffers and Tabs) left me a little confused. Let's say I split the display (:sp) and then select a different buffer to display in each window. Now I want to close one of the buffers, yet I don't want the window to close (After the closing it can display the next buffer on the list or an empty buffer, it doesn't matter). How can I do this?

谢谢.

推荐答案

Vim wiki 上有一个脚本 来做到这一点.我认为没有内置函数可以满足您的需求.

There's a script on the Vim wiki to do this. I don't think there is a builtin that does what you want.

最新版本的 vim-bufkill 在 github 上.

这篇关于如何在不关闭窗口的情况下关闭缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆