1) I need to capture the next key press from the keyboard, if there are any in 200 millisecond. Which function should I use to achieve this?
2) Basically I need to re-send the captured key, with some prefix key added. How can I check the code of key press properly? (I only need to check letter [a-zA-Z]
and Ctrl-letter.
C-w
to delete word. Which solved byset termkey=<C-l>
. 2. withset timeoutlen=200
, want to mapg-someletter
, for some easy type letter, it's ok, but for other letter it is un-usable. Then again, I decided to forget about it, since currently it's not worth to dig further. – qeatzy Dec 22 '18 at 12:54