Wednesday, September 29, 2010

Re: Question? passing visual selection to function

On Thu, September 30, 2010 1:07 am, Bee wrote:
> Is EXAMPLE 1 the only way to pass the selection to :s?
> Making it necessary to preceed the :call with <C-U> ?

No functions can act on ranges as well. See the help at
:h function-range-example and
:h a:firstline

regards,
Christian

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

Post a Comment