Cory Echols wrote: > On Wed, Dec 10, 2008 at 6:58 AM, Steve Laurie <[EMAIL PROTECTED]> wrote: >> 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? > > I'm not sure why vim thinks your </p> tag needs to be indented one > more level, but the fact that it does it when you hit ENTER could be > caused by the value of either 'cinkeys' or 'indentkeys'. If either of > those options have an "o" in them, vim indents the current line when > you hit ENTER. > > Ah Thank You very much Cory,
It's got to do with indentkeys. I set :indentkeys="" and it stopped happening. What would be the best value for this setting given that I'm working on X/HTML files. (I'll put it in my ~/.vim/after/ftplugin/html.vim file). Ta, Steve --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
