-
-
Notifications
You must be signed in to change notification settings - Fork 37
Alt maps break macros and mappings that use <esc> + char #13
Description
Hi,
for the past week or so I was obsessed with setting up Alt mappings for all the possible keys based on the example provided in vim-rsi. I digged the idea of being able to use Alt as another modifier key. I even created a plugin that enables that (it's a work in progress, but I probably won't bother to finalize it).
Since then, I've learned that setting up alt mappings breaks 2 other things:
- regular mappings that use
esc+ character and - macros that have
esc+ char
Here's how the issues can be reproduced in vim-rsi:
- the following macro doesn't work
istuff^[f.astuff^[.f.does not do what it should because ^[ + f is recognized as - this mapping does not work
imap <C-s> <Esc>ddi(this example is obviously made up)
Basically, anytime <Esc> + b, d, f, n or p (alt mappings from vim-rsi) is executed in a macro or a mapping, I think it won't work. And it will be dang hard to debug why.
For me personally, the biggest issue are f and n because they are used all to often in macros.
Not sure if there's any solution to this, but I hope bringing this up helps.