A.J.Mechelynck schrieb:
Andy Wokula wrote:
There is another strange detail about <c-g>u
In my vimrc I have (for gVim 6.4, gVim 7.0)
:imap <cr> <cr><c-g>u
Each "u" goes back one line of text in the undo history.
Note the "imap" instead of "inoremap". This way
abbreviations still work.
For the strange part: This mapping does not result
in an endless loop! I don't know why ... just found
out by trial and error, could someone explain this?
Andy
see ":help recursive-mapping"
Shortly put: A mapping never re-expands its {lhs} at the start of the {rhs}
Best regards,
Tony.
Thanks for the hint :-)
Regards,
Andy
--
EOF
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de