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:
I would use the script on remote servers without X too. vim is compiled without clipboard.
Any help is much appreciated.