applidium / Vim

Port of the Vim text editor to the iOS
https://applidium.com/en
533 stars 100 forks source link

Multi-character mappings no longer work #30

Open mon10a opened 9 years ago

mon10a commented 9 years ago

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?

nicolasbraun commented 6 years ago

related to #10 ?

mon10a commented 6 years ago

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 commented 6 years ago

Sorry, did not mean to close the issue.

nicolasbraun commented 6 years ago

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

nicolasbraun commented 6 years ago

@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.