Re: Indentation changes when calling functions

2006-08-09 Thread Benji Fisher
On Tue, Aug 08, 2006 at 05:05:15AM +0200, Preben Randhol wrote: imap \sf c-o:call insert_text()CR Now, say I have typed: def some_func(): '''Some func''' print Hello World | (| = cursor position) if I

Re: Indentation changes when calling functions

2006-08-09 Thread Preben Randhol
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

Indentation changes when calling functions

2006-08-07 Thread Preben Randhol
Hi I made some functions to use with Python programming. I noticed however a problem with indentation. The functions are called from insert mode. An generic example is given below. imap \sf c-o:call insert_text()CR function! insert_text() let pos = getpos('.')