Quantcast
Channel: Active questions tagged keymapping - Stack Overflow
Viewing all articles
Browse latest Browse all 74

neovim :imap but stay printing before to replace

$
0
0

I'm writing a mapping in neovim. Here is:

:imap abcd efgh

When I type 'abcd', it replaces by 'efgh'. This is the expected behavior.

But as typing 'abcd', it prints a, then replaces a by b, then replaces b by d and, finally when I type 'd', it prints efgh. My cursor never moves.

In other words I never see "abc" as a whole.

What I want is to see "abc" and then, when typing "d", the whole gets replaced by "efgh".

I kind of remember that, in vim-latexsuite, I had :call IMAP ("abcd", "efgh") which made the work.

Is it possible with nvim ?


Viewing all articles
Browse latest Browse all 74

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>