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

Error: Argument of map() must be a List or Dictionary #53

Closed yudium closed 4 years ago

yudium commented 4 years ago

After I press "fs" to jump to 's' character i got this error:

Error detected while processing function clever_f#find_with:
line   40:
E712: Argument of map() must be a List or Dictionary

Removing this setting making it works again: let g:clever_f_repeat_last_char_inputs='<Tab>'

My vim version is:

NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNUP
rhysd commented 4 years ago

It's because your configuration is not correct. Please try:

let g:clever_f_repeat_last_char_inputs = [ "\<Tab>" ]
rhysd commented 4 years ago

closing as no response