Joris Huizer <[EMAIL PROTECTED]> said,
> Hello everybody,
> 
> I like using VIM as it gives syntax highlighting and
> auto indenting on C files... 
> But I don't like the auto indenting of html files. How
> can I turn it off for one session - or even better,
> for all html files ?
> 
> Thanks for your help!!
> 
> Joris
> 
> =====

You can always try www.vim.org, or subscribe to their mailing list,
[EMAIL PROTECTED] (see the webpage for specifics). They've always been able
to help me with my problems.

Just to aim you in the right direction, there is probably a
filehandler (a filetype plugin) for HTML that is setting "ai"
(autoindent) when HTML files are loaded, so that would override the
setting in your .vimrc. Check the vim.org website and vim help files
for file handlers.

You'll want to create a ~/.vim/ftplugin directory and copy the
html.vim file from your global vim directory into ~/.vim/ftplugin and
edit it to remove the `set autoindent`.

(You can always `:set noai` during your vim session, but it will only
affect that session)

> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
Aaron Bieber
-
Graphic Design // Web Design
http://www.fisheyemultimedia.com/
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to