Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
If I wanted to start recording a macro using command-line mode, how would I do this?
Additionally, if I wanted to bind this action to a key, how would I do that in my .vimrc?
For the first question
That would start recording a macro to the "a" register. You may change that to any lower case letter.
To map F3 to it, for example, you could use
noremap <F3> :normal! qz<CR>
Required, but never shown