On Wed, 9 Aug 2006 09:30:36 -0400 Benji Fisher <[EMAIL PROTECTED]> wrote:
> It is not clear from what you have written: if the "def" line is > indented, does the cursor get indented too? It does not for me, so I > will assume that all the indent was removed and that you indented the > whole example. I indented the code to separate it from the text, but one could imagine that the code was inside an class... > This behavior is (almost) explained under > > :help 'autoindent' > > I say "almost" because <C-O> is not listed along with <Esc> and <CR> > as one of the keys that will remove all indent if typed on an "empty" > line. I see. It seems like <C-O> has same effect as <ESC>. > This is slightly simpler: > > imap \sf x<BS><c-o>:call insert_text()<CR> Thanks. I see that one has to add some text and remove it to get it to work. Preben
