takac / vim-hardtime

Plugin to help you stop repeating the basic movement keys
MIT License
826 stars 30 forks source link

Fix error with recursive key mappings #19

Closed rasendubi closed 10 years ago

rasendubi commented 10 years ago

Seems that vim may invoke BufRead more than once per buffer, so that our function may be called twice that results in key will be mapped recursively.

takac commented 10 years ago

Looks good. Thanks for the fix :+1: