At the moment I have to hard code the names of servers on my vimrc in order to either make it different on the remote machine. This is done by conditional statement using `hostname()` function in vim. I want to make the conditional to be based on the status of remote connection and not on the hostname. So...

The first possible solution I found was using the following bash command in `system()`:

```
cat /proc/$PPID/status | head -1 | cut -f2

```

This does not work because I use GNU `screen` and this will not detect my connection status properly.

The second possible solution I am exploring right now is using `who am i` This reliably shows whether or not remote connection has been made from which client, but I have trouble getting it working with `system()`

```
if substitute(system('who am i'), "theclient", ????, "") == ""
     ...

```

How could I get `????` to extract my client name somehow??

Even if the second solution works, allowing me to use .vimrc for many different remote machines, it is still tied to one client. I want the conditional to work in all remote session, regardless of the client name. So I am wondering, is this possible?