Hi AK,

On 09/11/2011 12:26 AM, AK wrote:
> On 09/10/2011 05:53 PM, Gelonida N wrote:
>> Hi,
>>
>>
>> I have a small question.
>>
>> for some text_file  I wanted to use foldmethod=ident
>>
>>
>> I have following
>> buffer ( no tabs / only blanks)
>>
>>
>> 0000000
>> 0000000
>> 0000000
>>      11111111111111
>>      111111111111
>>      1111111
>>          22222222222222222
>>          22222222222222222
>>          22222222222222222
>>          22222222222222222
>>          22222222222222222
>>
>>
>>
>> All the lines containing '2' can be folded and unfolded
>>
>> however vim does not fold the  first level so the lines with '1'
>> characters are not  being folded.

> 
> It has to be 4, not 5 spaces, I think then it will indent.  -ak

Well this was not the problem, as my original code had four spaces.

It seems I accidentally overwrite my shiftwidth setting in my vimrc.

as soon as I added
set sw=4
it was working again (the default sw is 8 and thus only the second level
of indentation was folded)

In fact if sw=4,
then indents of 4,5,6,7 are treated as the same fold level


Thanks a lot of putting me on the right track.
I didn't even think, that the shiftwidth is related to the folding.




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

Reply via email to