Wednesday, August 26, 2009

Re: substitutions in a very large file

On 17/08/09 22:43, Charles Campbell wrote:
>
> googler wrote:
>> On Aug 17, 9:25 am, Charles Campbell<Charles.E.Campb...@nasa.gov>
>> wrote:
>>
>>> The LargeFile.vim script that Tim mentions turns several of these time
>>> consumers off for "large" files, the definition for which you may
>>> customize by setting the "g:LargeFile" variable.
>>>
>>> I don't think LargeFile is switching off paren matching -- that's probably
>>> a good idea (thanks, Tim!) for me to add (a blindspot of mine as I
>>> have paren matching turned off by default, anyway).
>>>
>>
>> Thanks, this will be a useful tool, although I didn't get a chance to
>> perform the same operation as earlier as the large files do not exist
>> any more. I was wondering perhaps it will be a good idea to have some
>> way to let the user know if the file is currently in LargeFile mode or
>> not.
>>
> In version 5b, there are two echomsg's used:
>
> ***note*** handling a large file
> ***note*** stopped large file handling
>
> So a :messages command should let you know. Since syntax highlighting
> is off for
> large file handling its often obvious anyway.
>
> Regards,
> Chip Campbell

I haven't had a look at that LargeFile plugin, but I suppose that "large
file mode" status can be checked as a buffer-local boolean expression.
In that case, Googler, it would be possible (for the user, not the
plugin) to set up a custom 'statusline' displaying, let's say, [LF]
after the file name if in Large File mode.

Best regards,
Tony.
--
"Apathy is not the problem, it's the solution"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: