Andy Wokula wrote:
> Am 05.06.2013 16:35, schrieb Ben Fritz:
> > On Wednesday, June 5, 2013 6:26:59 AM UTC-5, Bram Moolenaar 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.
> >>
> > I leave it enabled. It could certainly use some improvement...
> > sometimes it seems to get lost, especially inside of <li> items, but I
> > wouldn't go so far as saying I'd rather have NO automatic indenting.
> > It does a reasonable job often enough I don't mind fixing it manually
> > from time to time. I would prefer if I didn't need to fix it at all.
> > I've toyed with the idea of using HTMLtidy as a formatprg/equalprg but
> > it never bugged me enough to try setting it up.
>
> You can try my script
>
> indent/html.vim : alternative html indent script
> http://vim.sourceforge.net/scripts/script.php?script_id=2075
>
> Hint: It can be found by typing "html indent" into www.vim.org's search
> field.
Thanks. Since the old indent script didn't get updated in 7 years I'll
include yours.
I have added the comments to the help file.
Please don't forget to email me a new version when you make
improvements. I don't check the scripts for updates.
--
hundred-and-one symptoms of being an internet addict:
171. You invent another person and chat with yourself in empty chat rooms.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, June 12, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment