vim-sneak icon indicating copy to clipboard operation
vim-sneak copied to clipboard

Support for language-mapping `lmap`

Open xged opened this issue 10 years ago • 5 comments

from :h language-mapping:

":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"

Vim-sneak accepts text characters therefore should support lmap.

xged avatar Feb 21 '15 17:02 xged

Is this different than 'keymap' (already supported https://github.com/justinmk/vim-sneak/issues/47)?

justinmk avatar Feb 22 '15 20:02 justinmk

'keymap' internally uses lnoremap, so it should not be different, but it does not work for me (my &imcmdline is 1 (on), but command-line (:) lmap allways restarts to off).

xged avatar Feb 23 '15 09:02 xged

I'm going to mark this as patcheswelcome for now, because I'm not even sure if anyone uses the keymap feature. Thanks for the report.

justinmk avatar Mar 04 '15 04:03 justinmk

Not sure if this is the same issue, but I had problems with vim-sneak when using set langmap=hk,jh,kj to fit the colemak layout better. Setting set langnoremap fixed my issues.

vinszent avatar Apr 10 '15 14:04 vinszent

@Ippytraxx I believe the only reason set langnoremap even exists is for "backwards compatibility". There's virtually no reason not to use set langnoremap. See also https://github.com/tpope/vim-sensible/pull/93

Thanks for the report too.

justinmk avatar Apr 10 '15 15:04 justinmk