tagalong.vim icon indicating copy to clipboard operation
tagalong.vim copied to clipboard

Selecting text, yanking and pasting it results in wrong inserted text

Open domi91c opened this issue 4 years ago • 4 comments

When I attempt to move text by selecting in visual mode, yanking, and then pasting somewhere else in the file, "Mq" is printed instead of the yanked text.

domi91c avatar Feb 05 '21 18:02 domi91c

Does this happen when you open an HTML file and immediately yank, or does it happen after some other action? Could you try putting this in your vimrc and checking if the issue continues to happen?

let g:tagalong_mappings = ['c', 'C', 'i', 'a']

This configuration makes sure that tagalong doesn't override the v key at all -- it might be related to that.

AndrewRadev avatar Feb 05 '21 19:02 AndrewRadev

Thanks! Adding that line fixed it for me. Great plugin btw.

domi91c avatar Feb 05 '21 19:02 domi91c

Great plugin btw.

Thanks, appreciate it :).

I'd like to figure out what the problem is, though -- that setting only disables the v mapping of the plugin. Ideally, I'd like to know what was wrong and fix it. Could you share your Vim version and config?

AndrewRadev avatar Feb 06 '21 10:02 AndrewRadev

I can confirm this is also happening to me in xml files, and above fix works. Not sure if it will be helpful for you, but here's my config repo: https://github.com/kristijanhusak/neovim-config

kristijanhusak avatar Jan 21 '22 09:01 kristijanhusak