How can I repeat not only the last used modification(.) but also more earlier ones?
Perfect variant would be choose them by Ctrl-N and Ctrl-P
|
feedback
|
|
I wouldn't recommend remapping C-N and C-P, since they are autocompletion mappings, and often plugins use them. As a matter of fact, I wouldn't recomment remapping any of vim's default mappings. But anyways, that's up to you. As far as repeating goes, the dot (.) will repeat the things you did on your last row. If you are having some problems with repeat command with some plugins, try the repeat.vim plugin. If you wish to have some opeations which you use often at your disposal, try recording it in a register and then playing it (":help record"), or making it a function and then calling the function (if you do wish, I guess the call to function could be made as C-N or C-P ...) | |||||||
feedback
|
|
To expand on @ldigas' comment about record and macros, here is a simple breakdown.
Once you have your macro, you can replay it by using @w (assuming you used w), and it will roll through the actions you recorded. | |||
|
feedback
|
|
Again expanding on mapping your commands to be repeated:
| |||
|
feedback
|