Hi,
fritzophrenic wrote: > > > On Oct 23, 2:03 am, Jürgen Krämer <[EMAIL PROTECTED]> wrote: >> the 'I'-flag in 'cpoptions' only keeps the current indent if you leave >> the line by pressing cursor-up or cursor-down. If you press enter the >> indent is removed. The only working solution I know of is to >> >> :inoremap <cr> x<bs><cr> >> >> Regards, >> Jürgen >> > > I thought I remembered reading somewhere in the help that moving the > cursor within the line also caused the indent to not be deleted, so > the following would work and is _slightly_ less hackish (because it > doesn't actually modify the buffer): I wouldn't care about that, because by inserting a new line he already does modify the buffer. > inoremap <cr> <left><right><cr> > inoremap <esc> <left><right><esc> This mappings breaks the dot operator. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
