Hello all,
I want to make a mapping like this:
:inoremap foreach foreach() {<CR>}<ESC>k$3hi
The end result being that when I type:
foreach
I should get
foreach() {
}
However, if I type anything beginning with 'for', the letters disappear until I
type something that is not part of the mapping. I understand this is the
standard behaviour, but is there any way to change it so I can see what I am
typing?
regards,
Peter
===========================================
Fluent in more than 100 programming languages;
Astoundingly fast;
Works without complaint when given hardware from the medieval era;
VIM makes up for all my shortcomings.
____________________________________________________
Do you Yahoo!?
Check out gigs in your area on the comprehensive Yahoo! Music Gig Guide
http://au.music.yahoo.com/gig-guide