rhysd / clever-f.vim

Extended f, F, t and T key mappings for Vim.
https://rhysd.github.io/clever-f.vim
1.01k stars 44 forks source link

Breaks macros after second press of t or f #62

Open aldevv opened 3 years ago

aldevv commented 3 years ago

Say you have the following line a,, b,, and you wish to delete the extra , after each letter, to do this you record the following macro: qqf,fx which leaves you with the following line after recording: a, b,, then you would run the macro again with @q

Expected Behaviour

to get a line like this: a, b,

Actual Behaviour

a,b,,

steps to reproduce

  1. qq start macro
  2. f,fx (find a comma, then go to the next comma and press x to delete the character)
  3. q to stop the macro
  4. @q to run the macro

vim

neovim 0.5.0 nightly (bare config)

jam1015 commented 2 years ago

There might be a solution in this comment thread: ggandor/lightspeed.nvim#7 Also this issue might be a duplicate of https://github.com/rhysd/clever-f.vim/issues/22