On Sun, Jun 7, 2009 at 7:43 PM, Suresh Govindachar wrote:
>
> Which is the preferred way to diable runtime/indent/html.vim (instead
> of just renaming the file)?

A well-behaved indent script has a check at the top of it to see whether
the buffer already has some sort of script-based indenting enabled, and
if so does nothing.  For example, indent/html.vim has this:

  " Only load this indent file when no other was loaded.
  if exists("b:did_indent")
      finish
  endif
  let b:did_indent = 1

So, to disable it, you can just make a ~/.vim/indent/html.vim (or
~/vimfiles/indent/html.vim on Windows) and put in it the single line

  let b:did_indent = 1

It will be loaded before the system-wide one (because the runtime files
in $HOME take precedence) and stop the system-wide one from doing
anything (because the system-wide one checks that variable).

~Matt

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

Reply via email to