无需插件:如何以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
bkey. - 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
Enterto open the selected buffer in the current window - Press
oto open it in a new split window - Press
-to switch back to the regular file system view - Press uppercase
Dto 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
相关产品推荐
相关产品推荐

