Much like what was asked in this question:
I want Neovim to show what I type, and keep recognising it as a mapping in progress even if I use Backspace or Delete. This is actually a very useful function that's in vim-latex
, a famous plugin for LaTeX in Vim, called by the function call IMAP()
. Is this implementable in other filetypes and buffers of Neovim/Vim, and if so, is there an example of this being implemented publically?
EDIT : Giving a clear example would be better for everyone, I was assured, so here goes an example:
Suppose I have an insert mode mapping of the following:
inoremap <buffer> hello helloworld
When I type hello
, I want Vim to do the following:
h|
he|
hel|
hell|
hello|
helloworld|
However, Vim does the following:
|h
|e
|l
|l
|o
helloworld|
This is quite annoying since I can't know if I make a typo, and also requires me to type in very quick succession, which I am not really fond of. This, I hear, has something to do with the ttimeout
option, which I have next to no knowledge of. Would this be enough of an example to better understand my question? I'm sorry for the inconvenience, but I really don't have a clue of how to phrase this...