On 2022-06-15, Bram Moolenaar wrote: > 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
I think that should be let b:did_indent = 1 setlocal noautoindent let b:undo_indent = "setlocal autoindent<" In that way, any non-html buffers created during that Vim session will have the global 'autoindent' setting. Regards, Gary -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220615161329.GD20513%40phoenix.