Tuesday, April 10, 2012

Re: Search a pattern and provide a context (few lines above and below)

On Tuesday, April 10, 2012 4:51:35 PM UTC-5, Zarko Coklin wrote:
> Sorry the command in my previous post should had been:
>
>  :g/cat/z#.3


You could use :redir to put the output of this command in a new file, variable, or register.

Or, more to my taste, don't delete stuff, just fold it away:

http://vim.wikia.com/wiki/Folding_with_Regular_Expression

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