> I want to flick through a large text file with repeated sections of
> variable length (but each with four heading lines) so that the the first
> heading line of each section always ends up as the first screen line -
> is there some way of doing this with the search facility?
Try something like:
noremap <buffer> X /PATTERN<CR>zt:nohl<CR>
where PATTERN is whatever matches the first heading line. You can use ? instead
of / to jump backward.
Best,
Paul
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment