Copy Adjacent Lines
Ctrl-Y and Ctrl-E pull from above and below.
Ctrl-Y copies the character directly above the cursor; Ctrl-E copies the character directly below. Surprisingly handy for aligned text.
Two of Insert mode's most under-used keys: Ctrl-Y and Ctrl-E. Each one copies a single character from the line above or below the cursor โ at the same column.
| Key | Action |
|---|---|
| Ctrl-Y | Copy character directly above |
| Ctrl-E | Copy character directly below |
Watch
- ๐บ #0382 Ctrl-V Literal Character (not yet published)
- ๐บ #0383 Ctrl-G u Break Undo (not yet published)
See also: Inserting from a Register, Swap and Duplicate Lines