Vim Tips Wiki
Register
Advertisement
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>

Comments[]

Advertisement