takac / vim-hardtime

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

Use previous key mappings if they exist #14

Closed rasendubi closed 10 years ago

rasendubi commented 10 years ago

While editing plain text documents, I map j and k keys to gj and gk respectively. However, hardtime ignores them. So, I fixed it.

takac commented 10 years ago

Didn't know about maparg, that's really cool. That fix makes this plugin a lot better! Cheers.

takac commented 10 years ago

I've had to revert this merge as people are having issues with it. See issue #15

takac commented 10 years ago

I meant reset the branch. Your changes are in dev/enable_mappings branch, pending a fix I will merge it back in to master.

rasendubi commented 10 years ago

Seems that I finally find a problem. The reason is that if hardtime_default_on is 1, HardTimeOn() will be called on every buffer enter. So there is another bug: if hardtime_default_on is 1, you turn off hardtime in current buffer and then switch back-and-forth to another buffer, hardtime will be enabled again. I've prepared fix for this.