2008/12/10 Steve Laurie <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I've tried to find what's causing this and can't.
>
> Currently, I'm working on an HTML doc and say for example, the cursor is
> on a line that has only a </p> tag on it. I position the cursor to the
> end of the line and press ENTER to go to the next line to begin the next
> paragraph BUT... when I do, the preceding </p> tag indents itself 1 tab
> space to the right. If I've got lots of paragraphs to add, eventually,
> the width of the paragraphs gets narrower and narrower because they all
> want to indent when I press ENTER after them.
>
> How do I stop them from indenting when I press enter to go to the next
> new line?

My solution may be a hack, but it works.  I put this in my _vimrc:

  au FileType html,xhtml setlocal indentexpr=

Best regards,

Yongwei

-- 
Wu Yongwei
URL: http://wyw.dcweb.cn/

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to