iTerm runs a command with filename, line number, pwd etc. as parameters when you click a path. You can use so called shell extensions to let iTerm add hostname and user to those parameters. I usually grab those and point my editor to the appropriate share or sshfs mount. With vim you can seamlessly use rsync or scp.