Yakov Lerner wrote:
On 8/7/06, Robert Cussons <[EMAIL PROTECTED]> wrote:

Hi all,

something I find myself doing quite often is the above, i.e. I have:

extract(p,f,m,n)

and I want

extract(p, f, m, n)

and rather than going to the comma and pressing 'a', 'space', 'Esc' I
would prefer to use a single key and stay in normal mode, can someone
give me a pointer to the place in the help for this, I tried insert, but
that is all about insert mode.


I have this mapping in my vimrc:

   :nmap <space> i <esc>

Just type space in normal mode to indent things (to insert space).
Use it all the time :-)

Yakov


Thanks Tim and Yakov, I had realised I could do a mapping but before I did just wanted to check I wasn't missing a key that already did the job in vim, yours looks like a logical mapping Yakov as space acts the same as l as far as I can see in normal mode and I have never used it anyway.

Thanks for the help,
Rob.

Reply via email to