How to Paste into Vim?

In Normal mode, press `p` to paste after the cursor

In Normal mode, press `P` to paste before the cursor

In Visual mode, use `p` to replace the selection with the clipboard contents

In Insert mode, press `Ctrl-r` then `”` to paste from the unnamed register

In Insert mode, press `Ctrl-r` then `+` to paste from the system clipboard

In Normal mode, use `”+p` to paste from the system clipboard

In Normal mode, use `”*p` to paste from the primary selection on systems that support it

In terminal Vim, use your terminal’s paste shortcut if needed, such as `Shift-Insert` or `Ctrl-Shift-V`

To avoid autoindent issues, enter Paste mode with `:set paste` before pasting

Turn Paste mode off with `:set nopaste` after pasting

Suggested for You

Trending Today