You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无需插件:如何以Explore风格在当前窗口显示所有已打开缓冲区?

View Open Buffers in Explore/Netrw Style (No Plugins)

Great question! Since you’re already comfortable with :Explore (Vim’s built-in Netrw file explorer), you can stick with that familiar interface to browse your open buffers—no extra plugins required. Here are two easy methods tailored to your workflow:

Method 1: Switch Netrw to Buffer View

If you already have an Explore window open (via :Explore, :E, or similar):

  • In the Netrw window, press the lowercase b key.
  • This instantly switches the view from the file system to your list of open buffers, keeping all your usual Netrw shortcuts intact:
    • Use arrow keys to navigate the buffer list
    • Press Enter to open the selected buffer in the current window
    • Press o to open it in a new split window
    • Press - to switch back to the regular file system view
    • Press uppercase D to delete (close) a selected buffer

Method 2: Open Buffer View Directly

Skip the regular file system view and jump straight to the buffer list in Explore style:

  • Run the command :Explore buffers (or its shorter version :E buffers) in Vim.
  • This opens Netrw’s buffer list directly in your current window, ready for you to navigate just like you would with a normal Explore session.

Bonus Tip

If you want a quick overview first, run :ls (or :buffers) to see a compact text-based list of open buffers. From there, you can run :browse buffers to launch the interactive Netrw-style view immediately.

内容的提问来源于stack exchange,提问作者srjjio

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 07:27:31