Vim logo vim online Vim Book Ad

basic Tip #398: Mapping for quicker access to macros

 tip karma   Rating 13/7, Viewed by 321 

created:   January 10, 2003 9:44      complexity:   basic
author:   torelg      as of Vim:   5.7

:nnoremap <space> @q

Start recording keystrokes by hitting 'qq'.
End recording with 'q'  (<esc> q if you're in insert mode).
Play keystrokes by hitting space.
---
Refs:
    :help register
    :help record
    

    

 rate this tip  Life Changing Helpful Unfulfilling 

<<mapping for better browsing of :help docs | fold away empty lines >>

Additional Notes

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo