I want to VISUAL select a piece of text character-wise and pass it to an external command.
For example I want to select only the URL from the the text below
abcde www.google.com abcde
and open it in the default browser.
But after I VISUAL selected it and ran the command
:call system('xdg-open', @*)
nothing happened
But the register *
was filled with the selected contents. I tested it with:
:echo @*
www.google.com
What is the right command to achieve it?