takac / vim-hardtime

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

Conflicts with tpope/vim-vinegar #48

Open alexanderjeurissen opened 7 years ago

alexanderjeurissen commented 7 years ago

This plugin introduces a map on the - key that conflicts with the invocation of vim-vinegar.

not sure what the reason of this map is but when looking at active mapings I saw the following: screen shot 2017-02-07 at 23 58 13

in other words somehow vim-hardtime tries to wrap the - mapping but it never invokes vinegar.

alexanderjeurissen commented 7 years ago

I think the issue lies in the fact that - is part of the default keys that are limited.

let g:list_of_normal_keys = ["h", "j", "k", "l", "-", "+", "<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]
let g:list_of_visual_keys = ["h", "j", "k", "l", "-", "+", "<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]
let g:list_of_insert_keys = ["<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]
let g:list_of_disabled_keys = []

However the expected behaviour is different in this case because vim-hardtime not only does limit repeatedly pressing - it blocks vim-vinegar from triggering on the first keypress aswell.

alexanderjeurissen commented 7 years ago

@tpope mentioning you here so you are aware of this issue.

takac commented 7 years ago

Probably not an easy or worthwhile fix, an update to the documentation outlining this limitation would be useful instead.