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

The Problem

Yanking and deleting overwrites clipboard — where did the last three yanks go and how do you paste an older one?

Formal Definition

Per Wikipedia: “Vim registers are named clipboards; unnamed ” holds last change, numbered 1-9 hold history, named a-z are explicit, +/* connect to system clipboard.”

Explanation

Registers are like labeled jars — “a holds your pick, “1 holds yesterday’s pick, ”+ holds the shared jar with OS.

How It Works

  1. Yank puts text in “0 and unnamed
  2. Delete puts in “1 shifting history
  3. Paste with “ap pastes register a
  4. “+p pastes system clipboard
  5. “:p pastes last command

Visual Explanation

vim_registers A Yank B Register File A->B step 1 C Paste B->C step 2

Semantic Network

semantic_vim_registers THIS Vim Registers REL1 Related THIS--REL1 related REL2 Prereq THIS--REL2 builds from

Key Properties

  • “0 preserves yank over delete
  • ”_ is black hole — no save
  • ”+ needs clipboard+ build

Real-World Example

"ayy # yank line to a
"ap # paste from a
:reg # show all

Connections

Edge Cases & Gotchas

  • Expecting unnamed to survive deletes — use “0
  • Forgetting + vs * clipboard difference