When I copy a two-line text from (e.g.) a PDF opened in Acrobat Reader into gvim using CTRL-V, the text is inserted above the line in gvim where I was positioned, instead of at the position where my cursor is. (scenario: I want to copy a document title that is spread over two lines and paste it in between a html tag in gvim).
If I do the same with a single-line of text, the text is correctly pasted at the cursor's position.
What should I do to make it also work with two-lines of text (e.g. something like 'paste without formatting')?
Important: the string two be pasted consists of two lines separated by a carriage return (or something similar)!
Solution
There are actually two valid solutions:
- using CTRL-R * to paste at the cursors position (and keeping the clipboard content multi-lined)
- do a remapping of the paste command to replace all carriage returns in the clipboard string