OK this may be pretty basic question but I just learned how to make custom key mappings.
I am trying to make vim automatically "end" two lines lower when typing "class"
so I wrote following in
:imap class class<CR><CR>end
So that worked fine except now when I start typing "class" vim is over typing each letter of "class" until I finish typing it or what I'm typing no longer matches "class".
Is there a way to avoid this behavior, I want to be able to see what I am typing as I'm typing it even when it matches a mapped key sequence?
Not sure if I'm explaining it correctly.
Thanks for help