On 08/06/09 18:58, Matt Wozniski wrote:
>
> On Mon, Jun 8, 2009 at 10:34 AM, Ben Fritz wrote:
>>
>> On Jun 7, 6:43 pm, "Suresh Govindachar" wrote:
>>> Which is the preferred way to diable runtime/indent/html.vim (instead of 
>>> just renaming the file)?
>>
>> Matt has given you a good way to disable the indent script for a
>> single filetype. If you instead want to disable ALL indent scripts,
>> don't turn them on in the first place. You probably have something
>> like:
>>
>> filetype indent plugin on
>>
>> or
>>
>> filetype indent on
>>
>> in your .vimrc. Remove the "indent" keyword and none of your files
>> will have the vimscript indent rules applied.
>
> <pedantic>
>
> Note that if you have a naughty distro that puts "filetype plugin
> indent on" in the systemwide vimrc, that won't be enough - you'll need
> to instead do
>
>      filetype off
>      filetype plugin on
>
> </pedantic>
>
> ~Matt

That won't be enough, because ":filetype off" remembers your settings 
for later: it is not the same as ":filetype plugin indent off".

Rather than the two commands above, you should use

        filetype indent off

The same applies if you source the vimrc_example.vim (which has a 
"filetype plugin indent on" somewhere in it): just unset 
filetype-dependent indenting just after sourcing the vimrc_example.vim then.

See ":help :filetype-overview"


Best regards,
Tony.
-- 
He hadn't a single redeeming vice.
                -- Oscar Wilde

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

Reply via email to