On 22/07/09 00:06, RPN wrote:
>
>
>
> On Jul 21, 4:36 am, Tony Mechelynck<[email protected]>
> wrote:
>> Indent scripts are mostly used to set either the 'indentexpr' option or
>> the 'cindent' and 'cinoptions' options. They should ALWAYS SET THEM
>> BUFFER-LOCALLY using the ":setlocal" command, not the ":set" command
>> (which could clobber the settings for other unrelated files). See
>> $VIMRUNTIME/indent/*.vim for examples.
>
> Thanks Tony! I already have a lot of my own custamizations and syntax
> files under ~/.vim.
>
> I am used to looking at the standard vim repositories for syntax
> highlighting files. Is there a similar one for indent scripts?

yes, as I said near the top of my former post, it is called indent/ 
instead of syntax/ (but at the same level in the same directory trees), 
and as I said near the bottom, see examples in $VIMRUNTIME/indent/*.vim 
for how to write them.

The middle part of my former post, which, alas, probably triggered your 
zap-reflex so that you didn't read there my answer to the question you 
are asking again today, was meant to impress unto you the necessity of 
never changing any $VIMRUNTIME script in-place -- I've known too many 
people who shot themselves in the foot by trying.

>
> I was looking for an indent script for the "json" format. A syntax
> file already exists but I cannot find an indent script. Anyone know of
> such?
>
> --
> Rahul

Well, not me, but maybe you can write your own?


Best regards,
Tony.
-- 
A professor is one who talks in someone else's sleep.

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

Reply via email to