LucHermitte / lh-brackets

LH's bracketing system for vim
Other
51 stars 2 forks source link

lh-brackets: Catch no such mapping error during UnMap. #5

Closed troycurtisjr closed 8 years ago

troycurtisjr commented 8 years ago

I actually put it in a dedicated branch this time :)

To be honest I don't know why this is happening. But during toggling mappings (with ), I got an error that stopped script execution. Turns out it was failing to unmap <localleader>< saying it didn't exist...which it clearly did. Once I put a try/catch in place and put in some debug I found it only had the error the first time through....

For your interested here are some screenshots showing my debug and errors:

First debug going through the mapping sequence (lh/brackets.vim#s:Map()): mappingdebug 2015-12-29 16 14 54

Then a screenshot showing the Verbose version of the mapping, as I was hypothesizing perhaps a different plugin had mapped it, but slightly differently. But as you can see, the mapping present was done by lh/brackets.vim: verbose mapping screenshot 2015-12-29 16 16 18

Finally the error itself, with some surrounding debug in s:UnMap(): unmapping error 2015-12-29 16 17 43