Vim Tips Wiki

Smarter pasting

Redirected from VimTip586

1,624pages on
this wiki
Add New Page
Talk0 Share
Tip 586 Printable Monobook Previous Next

created 2003 · complexity basic · author Usman Latif · version 5.7

Using :put " pastes text from the default register below the current line. That is useful if some characters within a line have been copied, and you would like the copied text pasted as a separate line.

Use the following mappings in your vimrc to make that easier. The first pastes after the current line, while the second pastes before the current line.

nnoremap ,p :put "<CR>
nnoremap ,P :put! "<CR>


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki