Monday, March 2, 2015

Visual yank

Hey,

I was surprised to find that a visual yank (select a piece of a line of text, press y to yank) will copy not only the text that is visually selected, but also the one character under the cursor.

So for instance you have this text selected up to the period. But the text also includes the space when you visually select it using "v" and then copy it into the default register.

And pasting it then reveals the additional space. I had pasted using "0P.

Is this expected or wanted or default behaviour? Should I be dealing with this, ie. always select one character less than what I want? Or is it a bug of some kind?

Please advise.

Regards,

D.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: