If you look at :h f
you'll see
|:lmap| mappings apply to {char}
(as in f{char}
)
Go to :h mapmode-l
:
":lmap" defines a mapping that applies to:
...<snip>...
- the argument of the commands that accept a text character, such as "r" and "f"
So lmap <c-j> <space>
... note, though, that you may need to typeexplicitly enable lmap
mappings by typing Ctrl+^ before using any lmap mappingwhile in Insert mode. Alternatively, ensure that 'iminsert'
is set to 1.
(YouThe docs are misleading about this, btw. What I'm reading is that this setting only applies to use of lmap
mappings used in Insert mode. But a simple test reveals that it applies to the f
family of Normal mode commands. Anyone have a different interpretation of :h 'imi'
and :h mapmode-l
? Am I insane?)
FYI: you can also solve your problem by brute forceforcing it with :nnoremap f<c-j> f<space>
and for F
,t
,T
.)