Tuesday, March 17, 2015

Is there a movement to the start of the enclosing fold?

If I'm in a leaf fold, then ?{{{ will take me back to the start of the
fold¹, to discover its title. That's sometimes very useful when I've
landed more than a page within it via a search.

But if there are several (even closed) subordinate folds between, then
?{{{ won't do the job. I suppose that a script which skipped }}},{{{
pairs in between would though, if there's no existing folding-conscious
method.

Erik

¹ Except in .vimrc, where I've had to change the foldmarkers to !!!,%%%
so that its "set foldmarker={{{,}}}" doesn't muck up the folding I use
in that file to help bring some order to it. But one infrequently
edited exception is neither here nor there.

--
Australia ranks 44th for average connection speed, according to The State of the
Internet Report from cloud service provider Akamai.
- http://www.abc.net.au/news/2015-02-09/remote-rural-australians-to-wait-another-year-for-fast-internet/6079476

--
--
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/d/optout.

No comments: