There was a way to register URL protocol handler for "vim:" in Ubuntu 18.04 LTS to call gVim.
You can create urls from type: "vim:local_file?line_number" for exapmple: "vim:~/.vimrc?5" will open .vimrc and focus on line 5.
First create file "/usr/share/applications/rvim.desktop".
Append in "/usr/share/applications/defaults.list":
x-scheme-handler/vim=rvim.desktop