Sometimes I share screen shots and clips of vim usage with others. It would be nice to expand on the part of the command line highlighted in this picture:
I would like some way to make previous key sequences visible as well, such as:
y2w jj f[ p 2d - You can see the key sequences leading up to the current one. I'll elaborate on my wish list at the bottom.
Is something like this is available as a plugin or vim script? The sheer number of scripts available on vim online makes this hard to find by keyword.
Clarification: I added the following section to show what functionality I wanted in case there were many vim plugins that dealt with this. Since it appears as if there are probably few or no plugins to do what I want, this section is largely irrelevant to the question - the question is not how to implement these features, it's whether or not, and where they have already been implemented.
Some features I would hope for (but seem improbable):
- Delimit key sequences with a non-keyboard character instead of space, and a different one for the current command, so
y2w jj f[ p 2dmight become
y2w¦jj¦f[¦p » 2d
- Replace keys that have a letter alternative with the alternative, such as the right arrow key -
^[[Cwith the equivalent
l. Edit: To clarify, the right arrow key is a valid key in vim, but has no character to represent it (a string like
<right arrow>would have to be used), in cases where the
lkey preforms the same function (most of the time) it should substitute the longer string.
- Have previous keystrokes run all the way to the beginning of the line (instead of just one or two), and just have vim's command prompt overwrite it when necessary.
- Replace some keystrokes with a more elegant alternative, for example
5hor more impressively
d%(in the appropriate situation).