On 12-Jan-13 08:36:38 +0900, Ben Fritz wrote:
> On Friday, January 11, 2013 3:24:24 PM UTC-6, Bram Moolenaar wrote:
>> Christian Brabandt wrote:
>>
>>> This means, the search starts actually after the fold. Because
>>> wrapscan
>>
>>> applies, Vim will start searching from the beginning of the fil
On Friday, January 11, 2013 3:24:24 PM UTC-6, Bram Moolenaar wrote:
> Christian Brabandt wrote:
>
> > This means, the search starts actually after the fold. Because wrapscan
>
> > applies, Vim will start searching from the beginning of the file again
>
> > and find the match and open the fold.
Christian Brabandt wrote:
> On Mi, 09 Jan 2013, Ben Fritz wrote:
>
> > This seems to be related to the cursor being within the fold.
>
> Yes, the source code says this:
>
> /* If the cursor is in a closed fold, don't find another match in the same
> * fold. */
> if (dirc == '/')
>
Hi Ben!
On Mi, 09 Jan 2013, Ben Fritz wrote:
> This seems to be related to the cursor being within the fold.
Yes, the source code says this:
/* If the cursor is in a closed fold, don't find another match in the same
* fold. */
if (dirc == '/')
{
if (hasFolding(pos.lnum,
On Wednesday, January 9, 2013 12:05:13 PM UTC-6, Wiktor Ruben wrote:
> I use Vim 7.3.715. Let's create sample fold:
>
>
>
> vim -u NONE -N
>
>
>
> :set foldmethod=marker
>
> i
>
> {{{1
>
> foo bar zaz
>
> foo bar zazgg0za
>
>
>
> Let's try search for 'foo': '/foo'. Fold will open and c
I use Vim 7.3.715. Let's create sample fold:
vim -u NONE -N
:set foldmethod=marker
i
{{{1
foo bar zaz
foo bar zazgg0za
Let's try search for 'foo': '/foo'. Fold will open and cursor will
be placed at the beginning of 'foo'. Great. Now, let's go back where
we started with 'gg0', close the fold wit