Vim Recall繁體中文

Copy (yank) modeless selection

Ctrl-y

Example

Command-line 0 / 1

Copy (yank) modeless selection.

Command line

Typed text
:
Insertion offset
1

GUI modeless selection

Selected text
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.

Sample buffer
copy me
Cursor on line 1, column 1
Details & 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.