On Wed, April 7, 2010 8:31 am, Aman Jain wrote: > 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.
You can use redir for that. E.g. to capture the output into register a, you could enter: :redir @a|norm [I|redir end Then you can do whatever you want with register a (e.g. place it in a buffer with :put or manipulate it further). You can also redirect into a filename or a variable. See :h :redir for more information. 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 To unsubscribe, reply using "remove me" as the subject.
