Monday, March 2, 2015

Re: Visual yank

* Dryden <kouzennoki@gmail.com> [2015-03-02 15:39]:
> 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.

well.. why should a selected character NOT be included by a copy?

> 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.

sorry.. it's an unclear example.

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

maybe you didnt see that the cursor was on the space
so it had been included in the copy (as expected)?

> 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.

well.. which version are you using on which system?
and can you give a reproducible example?

Sven

--
:ver
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 25 2015 02:12:47)
Inklusive der Korrekturen: 1-591
$ uname -a
Linux kudu.in-berlin.de 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64 GNU/Linux

--
--
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:

Post a Comment