-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
In many GUI editors, you can open multiple tabs, each of which contain a single file/buffer that you can edit. You would usually switch between them with Ctrl+Tab and Ctrl+Shift+Tab.
Splits
I personally don't like this design:
because it separates all the files on the left and on the right and in order to access echo of them you first have to jump to left or right side and then select the desired file.
In Neovim, you can open multiple buffers in infinite configurations in a single tab. Each tab can hold multiple buffers. To switch between tabs, you can use gt
and gT
. (To switch between buffers in a single tab, you can use Ctrl+W and then h/j/k/l.) With nvchad.com that has a tabufline plugin, you can mimic the way GUI editors work:
But then you can also use tabs:
But this is overkill, and just multiple "tab as file" would be enough. BTW, in Neovim I switch between buffers with Ctrl+h/j/k/l if multiple are visible, or Shift+h/j/k/l if only one buffer is visible.
Use Case
Quickly switch between files without reaching for a mouse/touchpad.