vim-hardtime icon indicating copy to clipboard operation
vim-hardtime copied to clipboard

Conflicts with tpope/vim-vinegar

Open alexanderjeurissen opened this issue 9 years ago • 3 comments

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 avatar Feb 07 '17 22:02 alexanderjeurissen

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 avatar Feb 08 '17 20:02 alexanderjeurissen

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

alexanderjeurissen avatar Feb 08 '17 20:02 alexanderjeurissen

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

takac avatar Jun 08 '17 13:06 takac