This is an automated archive made by the Lemmit Bot.

The original was posted on /r/neovim by /u/linkarzu on 2024-11-02 15:57:34+00:00.


In this video I go over how I used to navigate buffers in Neovim, I used tabs in the past, but over the past few months, I’ve discovered that I find tabs in Neovim distracting and overwhelming. Sometimes I have up to 20 files open, and I just cannot focus that well by having so many tabs shown at the top. That’s why I prefer to have the tabs “hidden” we could say, and I navigate between my open buffers using the telescope buffers command (you don’t require an additional plugin)

In the video I also demo how I previously used the bufexplorer plugin, which allows me to navigate between neovim buffers using the j and k keys, it also allowed me to close buffers by pressing the letter d, and to quit the plugin by pressing the letter q

I love this way of navigating buffers, because it’s pretty similar to the way that I navigate sessions in tmux, I bring up the tmux sessions, navigate them with j and k and quit with q, so it’s all about consistency across the tools I use

I now use telescope buffers, I open it in normal mode so that I can navigate buffers without having to switch from insert mode to normal mode, I can close buffers with d and I can quit the plugin with q

I also configured winbar to show me the number of buffers that I have open, and I demo how to configure this as well

I always like learning new ways of doing things and tricks, so if you can, share how you navigate buffers and why

Link to the video here

If you don’t like videos, here’s my dotfiles