Skip to content

Instantly share code, notes, and snippets.

@innyso
Last active May 9, 2020 11:50
Show Gist options
  • Save innyso/2bfe0d8583286376058ed6e2fd09cf3a to your computer and use it in GitHub Desktop.
Save innyso/2bfe0d8583286376058ed6e2fd09cf3a to your computer and use it in GitHub Desktop.
#vim #paste #insertmode

vim offer

  • + or * to access system clipboard
  • " for the unnamed registry which is the last thing y or d

CTRL+r Insert the contents of a register in insert mode.

Hence we can do the following to

#in insert mode, insert copy content in clipboard
Ctrl+r +

#in insert mode, insert content from vim unnamed registry
Ctrl+r "

Reference:

https://vim.fandom.com/wiki/Accessing_the_system_clipboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment