Hi!

>  But why I do need a specialised command ?

That's no specialised command, but the syntax of y. You type y and then a
motion. $ moves to the end of the line.

>  Why does 
> 
>        y/$

y/[pattern] moves to the first occurance of the pattern. The cursor is
positioned on the first character of the pattern, but this character is never
yanked (which is exactly what one expects normally).

> (despite the settings of the "selection" option)

The "selection" option is not relevant here, because you don't select anything
here.

> Why do I have to leave "/" off and have to use 
> 
>      y$

The syntax of y in Normal mode is y followed by a motion.

>  And  why does 
> 
>      y<any other character>
> 
>  does not work?

If <any other character> is no motion, then this must not work.

>  Is this inconsistency needed?

This is no inconsistency.

Just read:

:h motion.txt
:h copy-move

BTW, my suggestion has the advantage of using Visual mode. Sometimes you have
to type one character more, but this has the big advantage, that you can see,
what you are going to yank.

Best wishes,
Georg






        
        
                
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease 
of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html

Reply via email to