Wednesday, June 5, 2013

Re: I'm unable to override indentexpr

On Wed, Jun 5, 2013 at 7:26 AM, Bram Moolenaar <Bram@moolenaar.net> wrote:
>
>
> Steve Litt wrote:
>
> > I'm using Vim 7.3 in Xubuntu 12.10. When editing my html files, this
> > happens when I set indentexpr?:
> >
> > indentexpr=HtmlIndentGet(v:lnum)
> >
> > That's no good because HtmlIndentGet(v:lnum) does a horrible job of
> > indenting: I'd rather have no indentation at all. No prob -- I'll just
> > set indentexpr=, thereby getting rid of Vim-furnished indentation. So,
> > in ~/.vim/after/ftplugin/html.vim, I put indentexpr=. It changes
> > nothing. verb set indentexpr? says:
>
> [...]
>
> Are other people thinking the same way? I quite often disable HTML
> indenting, especially because it re-indents when changing an existing
> line, which can be very annoying.
>
> Perhaps there is another HTML indenter that would be preferred?
> Or the defaults should be changed?
>

I agree with Bram.

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment