---
# System prepended metadata

title: registers

---

# registers
[toc]

## cmd中的register
:::success
```
CTRL-R {register}					c_CTRL-R c_<C-R>
    Insert the contents of a numbered or named register.  Between
    typing CTRL-R and the second character '"' will be displayed
    to indicate that you are expected to enter the name of a
    register.
    The text is inserted as if you typed it, but mappings and
    abbreviations are not used.  Command-line completion through
    'wildchar' is not triggered though.  And characters that end
    the command line are inserted literally (<Esc>, <CR>, <NL>,
    <C-C>).  A <BS> or CTRL-W could still end the command line
    though, and remaining characters will then be interpreted in
    another mode, which might not be what you intended.
    Special registers:
        '"'	the unnamed register, containing the text of
            the last delete or yank
        '%'	the current file name
        '#'	the alternate file name
        ''	the clipboard contents (X11: primary selection)
        '+'	the clipboard contents
        '/'	the last search pattern
        ':'	the last command-line
        '-'	the last small (less than a line) delete
        '.'	the last inserted text
                        c_CTRL-R_=
        '='	the expression register: you are prompted to
            enter an expression (see expression)
            (doesn't work at the expression prompt; some
            things such as changing the buffer or current
            window are not allowed to avoid side effects)
            When the result is a List the items are used
            as lines.  They can have line breaks inside
            too.
            When the result is a Float it's automatically
            converted to a String.
            Note that when you only want to move the
            cursor and not insert anything, you must make
            sure the expression evaluates to an empty
            string.  E.g.:
```
:::