Saturday, January 12, 2013

RE: Yank part of line?

stosss wrote:
> This appears to be the only thing in help that seems to imply
> you can yank part of a line. But I can't figure out how to
> make that work. Am I wrong about this? Is the only way to
> yank part of a line in visual mode only or search and replace
> if one gets technical?
>
> (text from :help y)

An example of what is wanted would help make sense of this.
Do you mean in a script?
Yank which part of a line (how defined)?

In normal mode, you can of course move the cursor to somewhere
within the line and type y$ to yank to the end, or y0 to yank to
the beginning, and lots more things.

John

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

No comments: