Hi James! On Do, 12 Aug 2010, James Kanze wrote:
> I'm currently editing some files which contain several more or > less independent sets of data. At any one time, I'm generally > working on one, and only one set, delimited as a contiguous > range of lines. I'd like to limit all of the search commands to > only consider this range. > > I'm aware of using \%<'m and \%>'m in the search string, but > this has to be entered each search. > > My initial idea was to fold the regions before and after the > range, but this doesn't seem to stop the search, and it > automatically opens the fold when it finds something in the > folded text. I want it to not search in the folded text. Is > there some option to make search ignore folded text, or some > other way of achieving what I want. You can do this using folding and the 'foldopen' setting and the folddopen command. See :h 'foldopen' and :h folddopen Alternatively, try the NrrwRgn Plugin: http://www.vim.org/scripts/script.php?script_id=3075 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
