On Fri, Nov 7, 2008 at 9:30 PM, Linda W wrote:
>
> Erik Hahn wrote:
>> No wonder - the command is "*y , with an asterisk instead of a plus. You
>> press them in succession.
> ----
>        That works alot better....um...there seem to be a few bugs on my menu.
>
> Just looking at the "Edit menu" (Gvim 7.1, win32), I see:
...
> Cut             "+x
> Copy            "+y

> If Cut/Copy are like Paste, they seem to have the wrong keyboard
> accelerator as well.

On Windows, "+ and "* both mean the clipboard; on Linux, "* means the
x selection buffer and "+ means the clipboard.  Erik was mistaken, "+
is the right command prefix.

> Paste           "+gP

"+gP behaves like P, except that the clipboard is used instead of the
unnamed register, and the cursor is left after the pasted text instead
of before it.  It's meant to feel a little more CUA-y, I think, and
behave the way non-vimmers are used to paste working in other apps.

> Put Before      [p

Behaves like P, except that the inserted lines will have the current
line's leading indent added to their leading indent.

> Put After       ]p

Behaves like [p, except it inserts the text after the current line
instead of before.

> But [p, ]p, work differently depending on whether you have an entire line
> selected via a "double click", vs. putting cursor at beginning of line
> and moving all the way past the end of line to the right (including the
> blank space at the end of the line).
>
> If you have a line selected via "double click", then the "[p,]p" commands
> will place the entire line before or after the current line.
> But if you've selected the line by moving the cursor over the text
> (from 1st char to past eoln).

Er... What?

> I've never used either of those menu options -- but if I was completely
> new to vi, I might be "bewildered" by the behavior.
> Should "Put {before,after}" be replaced with 'p/P'"?

Perhaps a case could be made for it, but there are many strong
arguments for keeping things the way they are - It teaches people new
commands like [p and ]p and gP, and teaches people about registers,
and pastes that are indent-adjusted are probably useful to more people
than pastes that aren't indent-adjusted.  Either way, none of these
are bugs, they're just commands you didn't know.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to