• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

The Problem

Working with multiple files or views requires switching buffers. Split windows provide simultaneous visibility of multiple files or different parts of the same file.

Core Idea

Vim supports horizontal (:split) and vertical (:vsplit) window splits for simultaneous file viewing. Window commands enable navigation and resizing.

How It Works

Split commands:

CommandAction
:split or :spHorizontal split (top/bottom)
:vsplit or :vspVertical split (left/right)
:split <file>Split and open file
<C-w><dir>Switch focus (dir = h,j,k,l or arrows)
<C-w>_Maximize horizontal split
``
<C-w>+Grow split by 1 line
<C-w>-Shrink split by 1 line

Key Properties

  • Each split has its own buffer
  • Splits share registers and global settings
  • :hide closes current split
  • :only closes all other splits

Edge Cases & Gotchas

  • Resize mode: <C-w>= equals all split sizes
  • Tab-based workflow is modern alternative to splits
  • :help split has comprehensive documentation

Connections