On 2009-05-15, Chris Jean wrote: > I love the auto-indenting feature in Vim. It saves a ton of time when > coding. However, there are two behaviors that I do not like. > > 1. The auto-indent clears when I move the cursor after creating an > auto-indented line (I solved this). > 2. The auto-indent clears when I press enter to create a new line. > > I was able to change the first behavior by adding set cpo+=I. However, I > am unable to find a way to disable the second behavior, and it kills my > efficiency as I constantly have to go in and manually insert tabs. > > Does anyone know a way to prevent Vim from clearing the auto-indent > without having to put in a junk character and remove it before pressing > enter?
What language are you using? It could be a deficiency in the indent plugin for that language, because I don't see that behavior when using C, sh or plain text. That is, I can hit Enter as many times as I want and the indentation level doesn't change. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
