I am trying to get the mouse selected text in a register in normal mode. If the selection is a substring, only the selection should be copied, not the complete word.
Currently the script has:
normal! "zyiw
I would use the script on remote servers without X too. vim is compiled without clipboard.
Any help is much appreciated.
:version
output?+clipboard
.-clipboard
). Is there any other way to do this? I am trying a modify a script to highlight multiple mouse selected text (even substrings) with different colors. Currently it matches the complete word under cursor.