Wednesday, June 15, 2022

Re: How to turn off auto-indenting in Vim for HTML?

Steve Litt wrote:

> How do I turn off auto-indent in Vim for my HTML files? I prefer to
> flush left everything and create blank lines at transitions.

Add a file: ~/.vim/indent/html.vim containing:

let b:did_indent = 1
set noautoindent

--
A law to reduce crime states: "It is mandatory for a motorist with criminal
intentions to stop at the city limits and telephone the chief of police as he
is entering the town.
[real standing law in Washington, United States of America]

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220615093521.7FF861C2345%40moolenaar.net.

No comments: