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

`gx` conflicts with vim-markdown mappings

Open sim590 opened this issue 10 years ago • 2 comments

Seems like the vim-markdown project now overrides the mapping gx and therefore conflicts with quicklink's gx mapping. What they've implemented is different from what quicklink does.

I do use both plugins and others may too. Furthermore, the code we've implemented for gx and gl would make sense for vim-markdown plugin. I was wondering if we should try merging this code into vim-markdown in order to solve the conflict? Otherwise, we should be thinking about changing the gx mapping.

@christoomey What do you think?

sim590 avatar Apr 26 '15 08:04 sim590

Hmm, I'm fine with merging this functionality into vim-markdown, although I personally user tpope's so I would still want this behavior in quicklink. Maybe we can check if it is already defined?

christoomey avatar Apr 29 '15 13:04 christoomey

Yes. I should have thought about the fact that other markdown plugin may exist. It's best to keep the feature in the plugin since it's totally relevant and that we should not rely on other plugins for this since it's so much connected with the main feature.

Do you mean to check if gx mapping is already defined? If so, it will certainly be because it's a mapping from netrw plugin, which normally comes with vim. However, we could check the signature of the function that is being called by gx and if it's not netrw's function, we could map our function to something else. But, I find this behavior a bit strange because the mapping may not be the same for two users that have different plugins installed. I don't know. But I'm feeling I don't really understand what you mean.

sim590 avatar Apr 29 '15 23:04 sim590