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

clever-f triggered by any use of f or t in normal mode #66

Closed dragon-architect closed 2 years ago

dragon-architect commented 2 years ago

I have a map in one of my user-written plugin files, <Leader>fs, that manually applies a syntax highlight fix. I have let mapleader="," in my maps configuration, so the actual map is ,fs. This map keeps triggering clever-f on me, and invokes a forward-find of the character s. On immediate reuse of the map, it'll break the map and invoke a substitution action on the character under the cursor.

Additionally, if I type :help clever-f<CR>, I do indeed get the help docs for clever-f, but with all of the carriage returns highlighted. It seems as if clever-f is being triggered by any use of f/t/F/T while in normal mode, regardless of its context.

dragon-architect commented 2 years ago

Iiiiiii figured it out. It's a PEBKAC error. I had let mapleader="," in a configuration file that was NOT my vimrc, so its effect was local to only the maps in that configuration file. Moved it to the vimrc and everything works perfectly fine again.