Copy (yank) modeless selection
Ctrl-y
Example
Command-line 0 / 1Command-line 1 / 1Copy (yank) modeless selection.
Command line
- Typed text
:- Insertion offset
1
GUI modeless selection
- Selected text
copy me
CTRL-Y copies the existing modeless selection to the clipboard; it does not execute the empty command line.
Command line
- Typed text
:- Insertion offset
1
GUI modeless selection
- Selected text
copy me
Illustrated clipboard
- Contents
copy me
Before & after
Before
Command line
- Typed text
:- Insertion offset
1
GUI modeless selection
- Selected text
copy me
After
Command line
- Typed text
:- Insertion offset
1
GUI modeless selection
- Selected text
copy me
Illustrated clipboard
- Contents
copy me
Documentation-backed illustration. a GUI build with clipboard support and the shown modeless selection (c_CTRL-Y); clipboard access is illustrated only. CTRL-Y copies the existing modeless selection to the clipboard; it does not execute the empty command line. Primary help: c_CTRL-Y.
copy meCursor on line 1, column 1Details & Vim help
Copy (yank) modeless selection. Use while editing a : command or / or ? search prompt; this edits or controls that prompt rather than running an Ex command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.