> Hi
>
> After doing '[I' - (left bracket followed by capital i) which is meant
> for displaying all lines that contain the keyword under cursor, how
> can I save those results.
> The output was not available in any registers.
>
> Thanks
>
see :help :redir
Example:
:redir @"
:exe 'il' expand('<cword>')
:redir END
The output is now in the unnamed register. (Other possibilities: a file,
a variable)
Best regards,
Tony.
--
FATHER: One day, lad, all this will be yours ...
PRINCE: What - the curtains?
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
--
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