On Wed, 25 Apr 2012, Ben Fritz wrote:
> On Wednesday, April 25, 2012 7:58:09 AM UTC-5, esquifit wrote:
>>
>> Speculations aside, a simple mapping like
>>
>> nnoremap q @
>> nnoremap @ q
>>
>> should do what you want. Unless I am too naive.
>
> Sadly I don't expect that to work, but do report back if it does.
>
> :help q says,
>
> "The 'q' command is disabled while executing a register, and it
> doesn't work inside a mapping and :normal."
It works fine here.
As to the original question, for a long time I've used:
:nn Q @q
So 'qq' starts recording the macro named 'q', then 'Q' executes it.
Saves a lot of finger movement if you only usually deal with a single
macro at a time.
--
Best,
Ben H
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Wednesday, April 25, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment