Clear all currently defined vim macros
Posted
by Simon Walker
on Stack Overflow
See other posts from Stack Overflow
or by Simon Walker
Published on 2010-04-22T09:17:18Z
Indexed on
2010/04/22
10:23 UTC
Read the original article
Hit count: 189
Hi everyone
I have a vim macro that I keep mistyping, usually when I'm trying to save something so I do it quickly and I can't work out what keys I pressed. It is annoying as it pastes some irrelevant bash code into my file so I have to undo the erroneous pasting which also undos the last thing I typed that I do want.
I was looking for a way to either list the currently defined macros (so I can redefine the offending one), or a way to clear out them completely. I only use macros in the very short term so I don't mind losing them all.
Cheers
© Stack Overflow or respective owner