clever-f.vim icon indicating copy to clipboard operation
clever-f.vim copied to clipboard

Recent commits to clear highlighting break basic functionality of clever-f

Open atweiden opened this issue 3 years ago • 2 comments

Commits https://github.com/rhysd/clever-f.vim/commit/25e8c6bbbd11c63a831ecd88098643e3a20cbc3f and https://github.com/rhysd/clever-f.vim/commit/02e9871244a8df6cf0db4fd5799d93d0307a04f9 break basic functionality of clever-f for me: pressing f followed by the character to find, making a change, then pressing f again, and .-repeating the previous change, etc.

Unfortunately, the only way I’ve been able to get the old behaviour back is to revert to https://github.com/rhysd/clever-f.vim/commit/fd370f27cca93918184a8043220cef1aa440a1fd.

atweiden avatar Oct 02 '22 03:10 atweiden

what does your 'break' mean? it works fine on my local. describe

  1. reproducible steps
  2. actual behavior
  3. expected behavior

rhysd avatar Oct 03 '22 01:10 rhysd

Vim buffer example.

mutable_files="
 /usr/lib/modules/${_kernver}/modules.builtin.bin
 /usr/lib/modules/${_kernver}/modules.builtin.alias.bin
 /usr/lib/modules/${_kernver}/modules.softdep
 /usr/lib/modules/${_kernver}/modules.dep
 /usr/lib/modules/${_kernver}/modules.dep.bin
 /usr/lib/modules/${_kernver}/modules.symbols
 /usr/lib/modules/${_kernver}/modules.symbols.bin
 /usr/lib/modules/${_kernver}/modules.alias
 /usr/lib/modules/${_kernver}/modules.alias.bin
 /usr/lib/modules/${_kernver}/modules.devname"

Expected behaviour.

Using clever-f and vim-surround:

  • On line 0, column 0: press f { to find first opening curly brace ({)

  • With Vim cursor on first opening curly brace ({): Delete surrounding curly braces (ds{)

  • Press f to move Vim cursor to next opening curly brace

  • Press . to dot-repeat previous command (delete surrounding curly braces)

  • Press f to move Vim cursor to next opening curly brace

  • Press . to dot-repeat previous command (delete surrounding curly braces)

  • etc

Actual behaviour.

  • On line 0, column 0: press f { to find first opening curly brace ({)

  • With Vim cursor on first opening curly brace ({): Delete surrounding curly braces (ds{)

  • Press f, but need to type { again to find next opening curly brace.

atweiden avatar Oct 03 '22 10:10 atweiden