Open Konfekt opened 9 years ago
Having done a bit of that in my personal configuration, and having taken a look at some plug-in code that tries to do that, I can tell you it is far from being this straightforward. You are in for a world of hurtful edge and corner cases :).
Yep, It'll only work for most common mappings. There are for example parameters such as <nowait>
missing. There is the savemap plugin, but implementing missing features of Vim in Vimscript is an exercise in futility. It'll probably have to stay as is, either users have not overwritten the fold mappings or have to implement FastFoldUpdate themselves.
This could be achieved by something in the vein of