rhysd / clever-f.vim

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

mapping `clever-f-reset` doesn't work #23

Closed hoschi closed 3 years ago

hoschi commented 9 years ago

or I'm too dumb to get it right ... ^^

I tried as normal with:

nm <Leader>f          <Plug>(clever-f-reset)

with , as leader. When I do this f doesn't work anymore. Ther cursor jumps to the status line when I press f and return to previous position when I press another key to search for that character. But it doesn't search any more :(

rhysd commented 3 years ago

I tried the mapping and it worked as expected in my side. I guess this issue was fixed at some point or due to some confusion. I'll close this. If you still see this, please let me know by leaving comment here.

hoschi commented 3 years ago

Hm. f works now, with the mapping installed.

However, ,f doesn't seem to reset "clever f". When I start searching by fn for char "n" I see highlights for every "n". My use case is that I want to search for another character, but pressing ,f still searches for "n".

rhysd commented 3 years ago

Thanks for the comment. I'm reopening this and will look into it.

rhysd commented 3 years ago

I tried the following steps but it did not reproduce this issue. Could you try the same?

  1. Save the following vimrc file in current directory
  2. Make file with echo 'abcabcabcabcabcabcabcabc' > foo.txt
  3. Open Vim with vim -N -u ./vimrc foo.txt
  4. Type faff. Now cursor is on 'a' character
  5. Type ,f
  6. Type fb and check if 'b' is searched with this plugin
set nocompatible

set rtp+=~/.vim/bundle/clever-f.vim

let mapleader = ','

nmap <Leader>f <Plug>(clever-f-reset)
hoschi commented 3 years ago

That actually works! I guess I need then to find the problem in my (not so small) config 🙃.

rhysd commented 3 years ago

I recommend to check :nmap <Leader>f in your Vim.

hoschi commented 3 years ago

I checked that first, it shows only the binding to clever-f

rhysd commented 3 years ago

That actually works! I guess I need then to find the problem in my (not so small) config 🙃.

If you find this issue is a problem of this plugin, please let me know by leaving a comment. Closing this issue meanwhile.