Training plan › LazyVim

Buffers and windows

Switch files, close them and split the screen.

Every open file is a buffer; the top bar (bufferline) shows them as tabs. Shift+l and Shift+h go to the next and previous one; <Space>bd closes the current one. Windows split the screen: <Space>| splits vertically, <Space>- horizontally, and you move between them with Ctrl+h/j/k/l.

7 steps · 5 min · 80 XP

  1. Next buffer: Shift+l
  2. Previous buffer: Shift+h
  3. Pick a buffer: <Space>,
  4. Close a buffer: <Space>bd
  5. Vertical split: <Space>|
  6. Move between windows: Ctrl+h
  7. Close the window: <Space>wd

Create a free account