pasting text: bug?

7 views
Skip to first unread message

peiman khosravi

unread,
Jun 9, 2013, 7:22:37 AM6/9/13
to vim...@googlegroups.com
This behaviour is not consistent but it happens often. 

When editing something like this:

<title> test - 5 May 2013</title>

I copy a line, delete the text in between the title tag and paste the copied line there instead. The result is sometime normal, but at other times the new text is pasted before the <title> tag, rather than in between the tags. Is this normal?

björn

unread,
Jun 9, 2013, 10:34:44 AM6/9/13
to vim...@googlegroups.com
If you select a line with a newline character, then Vim will paste
*above* the cursor. If there is no newline character in the selection
then it pastes *at* the cursor.

It is a "feature", not a bug, I'm afraid.

Björn

peiman khosravi

unread,
Jun 9, 2013, 7:10:59 PM6/9/13
to vim...@googlegroups.com
OK, that makes a lot of sense now. Thanks for clarifying. 

Best,
Peiman






www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.




--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages