Make the '.' single-repeat command content available via the ',' and ';' registers#6346
Make the '.' single-repeat command content available via the ',' and ';' registers#6346laktak wants to merge 1 commit into
Conversation
…';' registers. Supports getreg() and setreg() for ',' and ';'. The initial idea was taken from the patch by [Ben Schmidt](https://groups.google.com/forum/#!msg/vim_dev/TIH6wsD4Qo4/msUMWHnWt3oJ). I've updated it and added support for setreg(). Warning: this is my first patch for Vim!
yegappan
left a comment
There was a problem hiding this comment.
Can you add some tests for this change? You can take a look at the many test scripts available under the testdir directory for example. You can also look at the code coverage results to add additional tests.
|
In that case, how about making only the current command available in the register The history could be accessed via Vim Script, e.g. |
|
Unfortunately, there is a problem with visual operations.. e.g., if you do Would it make sense if |
I will try once it's clear how the feature should be implemented.
I'm not sure what is going on here since I am just using |
vim doesn't record the "redo buffer" like it does regular macros. For example, do |
|
Maybe introduce autocmd that is called when singe-repeat is used? Then one can save history of commands by saving ; register |
|
Any progress on this PR? |

See #6299
Supports getreg() and setreg() for ',' and ';' - where ',' is the current and ';' the previous command.
The initial idea was taken from the patch by Ben Schmidt. I've updated it and added support for setreg().
Warning: this is my first patch for Vim!