Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Multi-character mappings no longer work

Open mon10a opened this issue 10 years ago • 5 comments

It no longer works to map 2 characters to a command or function. For example:

imap jj <esc> no longer works to map "jj" to the <escape> key. 

Similarly, mapleader no longer works. For example:

let mapleader = "," does not work to allow "," to trigger another defined command or function.

Both of these worked fine a while ago and I can't remember if they broke in the last update of Vim for iPad or if it was after an iOS update.

Would it be possible to fix these?

mon10a avatar Apr 20 '15 23:04 mon10a

related to #10 ?

nicolasbraun avatar Aug 24 '17 10:08 nicolasbraun

Thanks for looking at this.

My issue may be related to #10, but I have not tested map or nnoremap (both mentioned in #10).

My narrower issue was that imap no longer works. This means that you can't substitute 'jj' or 'jk' or one of the other common alternatives for the escape character.

mon10a avatar Aug 24 '17 15:08 mon10a

Sorry, did not mean to close the issue.

mon10a avatar Aug 24 '17 15:08 mon10a

Yeah I saw, you cannot validate (enter does nothing) the imap command, do you experience the same behavior?

nicolasbraun avatar Aug 24 '17 15:08 nicolasbraun

@laviallb notice that after setting this imap command taping the letter j lags a bit and the cursor takes time before moving to the end of line.

nicolasbraun avatar Aug 24 '17 16:08 nicolasbraun