On 16/09/09 19:33, Ben Fritz wrote:
>
>
>
> On Sep 16, 11:54 am, Hoss<[email protected]> wrote:
>>> Just a guess:
>>> :g/^#/.ret! 100
>>
>> With this I am not getting any lines replaced
>>
>
> Hoss, please bottom-post according to our list guidelines. I have
> reformatted this email for you.
>
> I tried the above command, and it worked fine for me.
>
> Your command was doing the entire file because the :retab command
> defaults to act on the entire file. Putting a . in front of it
> specifies only the current line as the range. The :g command sets the
> current line to each matched line before executing the command.
Of course, if there are nowhere in the file (on a matching line) any
strings of 100 whitespace between columns n*100+1..(n+1)*100 (with n in
{0, 1, 2, ...} a :retab with value 100 will do nothing.
However, any hard tabs on _other_ lines should suddenly expand from
whatever they are worth "before" (default 8, which it is recommended not
to change) to the new 'tabstop' value of 100.
Best regards,
Tony.
--
Lowery's Law:
If it jams -- force it. If it breaks, it needed replacing
anyway.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---