[Question] Insert mode mappings
See original GitHub issueHello! Thank you for such an awesome plugin! Absolutely love it! ❤️
I’ve been trying to set up a few keymappings for insert mode. Most of them are not of a big importance, but this one is an absolute must for me and it doesn’t work:
imap jj <Esc> :call VSCodeNotify('vscode-neovim.escape')<CR>
It doesn’t even trigger the chord on the first j
, like no reaction whatsoever.
Am I doing something wrong? Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Insert mode mapping to leave insert mode then invoke a ...
This happens because the <Plug> command is itself a mapping defined by a plug-in, so you need recursive mappings in this case for...
Read more >Vim key mappings in insert mode - Stack Overflow
vimrc file and mapped some commands. They are only working in normal mode. Is there any way to map commands in insert mode?...
Read more >[question] telescope.nvim insert mode typing is conflict with ...
[question] telescope.nvim insert mode typing is conflict with own key mapping. I have my own key mapping like this: local function map(mode, lhs,...
Read more >Mapping redo in insert mode VIM - Super User
Mapping redo in insert mode VIM · Ask Question ... How to remap a redo shortcut (Ctrl-R in normal) to Ctrl-Shift-Z in insert...
Read more >Vim insert mode tips & tricks - sidebits
imap establishes mappings for insert mode. You might have used its more popular cousin, nmap. imap, just as iabbrev, is a way to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, something like
jj
orjk
for the escape key won’t work. And i have no plans to listen to events in insert mode unless this or this will be fixed. Sorry for inconvience!Alright, I figured it out. Adding the keymap to vscode’s
keybindings.json
withneovim.mode == insert
works great!It’s probably a good idea to add a note on how to add key mappings for insert mode (with the above example). I’ll send a PR tomorrow if you don’t mind.