repmo-vim icon indicating copy to clipboard operation
repmo-vim copied to clipboard

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

Open oakmegaeddie opened this issue 4 years ago • 1 comments

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.

oakmegaeddie avatar Oct 08 '21 06:10 oakmegaeddie

You can map ,, as follows:

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

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

Houl avatar Jan 16 '22 15:01 Houl