Skip to main content
toggle key must be enetered in Insert mode.
Source Link
B Layer
  • 20.1k
  • 2
  • 32
  • 59

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.)

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 type Ctrl+^ before using any lmap mapping.

(You can also brute force it with :nnoremap f<c-j> f<space> and for F,t,T.)

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 explicitly enable lmap mappings by typing Ctrl+^ while in Insert mode. Alternatively, ensure that 'iminsert' is set to 1.

(The 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 forcing it with :nnoremap f<c-j> f<space> and for F,t,T.

added 87 characters in body
Source Link
B Layer
  • 20.1k
  • 2
  • 32
  • 59

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 type Ctrl+^ before using any lmap mapping.

(You can also brute force it with :nnoremap f<c-j> f<space> and for F,t,T.)

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 type Ctrl+^ before using any lmap mapping.

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 type Ctrl+^ before using any lmap mapping.

(You can also brute force it with :nnoremap f<c-j> f<space> and for F,t,T.)

added 121 characters in body
Source Link
B Layer
  • 20.1k
  • 2
  • 32
  • 59

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:
- Insert mode
- Command-line mode
- when entering a search pattern...<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 type Ctrl+^ before using any lmap mapping.

If you look at :h f you'll see

|:lmap| mappings apply to {char}

Go to :h mapmode-l:

":lmap" defines a mapping that applies to:
- Insert mode
- Command-line mode
- when entering a search pattern
- the argument of the commands that accept a text character, such as "r" and "f"

So lmap <c-j> <space>?

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 type Ctrl+^ before using any lmap mapping.

Source Link
B Layer
  • 20.1k
  • 2
  • 32
  • 59
Loading