On 2009-11-09, Rene de Zwart wrote:
> I wrote a plugin for assisting in (x)(ht)(x)ml editing.
> However when
> filetype indent on
> is specified it messes up some actions in my plugin
> e.g.
> \t\t<html>
> becomes
> <html>
> \t\t|
> </html>
> AND I Expect it to become
> \t\t<html>
> \t\t\t
> \t\t<html>
>
> I used filetype indent off in my plugin. Which is global and not localized
> to the buffer. It works but the side effects are to much.
>
> Has someone a solution?
To turn off indenting for a particular file type, create your own
indent plugin for that file type containing only this line:
let b:did_indent = 1
For HTML, for example, the name of your indent plugin on Unix would
be
~/.vim/indent/html.vim
See
:help 30.3
Regards,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---