I think using JavaScript code blocks is a great feature. From normal mode they can be run using the call command in some mapping like
map ci :call myJavaScriptFunction\<CR>
Yet, this does not work as an insert mapping, i.e., when for example an input box is focused:
imap \<C-h> :call myJavaScriptFunction\<CR>
Is there another way to call such a code block when an input box has the focus?
I think using JavaScript code blocks is a great feature. From normal mode they can be run using the call command in some mapping like map ci :call myJavaScriptFunction\<CR>
Yet, this does not work as an insert mapping, i.e., when for example an input box is focused: imap \<C-h> :call myJavaScriptFunction\<CR>
Is there another way to call such a code block when an input box has the focus?