Vim and other similar shell commands expect to be working with a tty. When the server executes a shell command it uses popen3. Vim complains that STDIN and STDOUT are not TTYs. It then doesn't respond to navigation commands correctly.
Does this affect other commands, e.g.,. passwd?