PracticalVim Tip15 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 15: Paste From a Register Without Leaving Insert Mode

Return to the top: <>

`{register}`

Example:

References:

Use `{register}` for Character-wise Registers

If the `textwidth` and `autoindent` options are enabled, you might end up with unwanted line breaks or extra indentation when you `{register}` to paste a lot of text.

`{register}`: inserts text iterally and fixes any unintended indentation.

Suggestion: switch to Normal mode when you want to paste a register containing multiple lines of text.

References:

⚠️ **GitHub.com Fallback** ⚠️