Houl / repmo-vim

Repeat motions [for which a count was given]
38 stars 5 forks source link

Is it possible to use ",," to do a reverse motion? #10

Closed oakmegaeddie closed 9 months ago

oakmegaeddie commented 2 years ago

Hi, I see this settings in readme:

" repeat the last [count]motion or the last zap-key: :map ; repmo#LastKey(';')|sunmap ; :map , repmo#LastRevKey(',')|sunmap ,

However I use , as my leader key, so I can't use it to do a reverse motion, is it possible to map ,, instead of ,?

If there's other suggestion, please tell me, thx.

Houl commented 2 years ago

You can map ,, as follows:

map <expr> ,, repmo#LastRevKey('')|sunmap ,,

The readme mentions how to map <BS> as alternative repetition key.