i run a vim server

$ vim --servername .

i use it to edit all my files on my local box with commands like:

$ vim --servername . --remote foobar.rb

good stuff really.  i've started using it to edit files across the
network like this:

$ vim --servername . --remote scp://[EMAIL PROTECTED]/foobar.rb

really good stuff.  now check this out:

$ ssh -Y remotebox    # .ssh/config inclues X11 forwarding
(remotebox)  $ vim --servername . remote scp://[EMAIL 
PROTECTED]/path/to/foobar.rb

woah, it works.  my vim server on the localbox gets the file and i
edit away UNLESS the path to foobar.rb does not exist on the local box
which is odd because i'm not editing a file on the local box.  if the
dir structure is the same on both boxes it's cool.  if not i get this
error in vim:

E344: Can't find directory "/path/to" in cdpath
E472: Command failed

because /path/to does not exist locally, just on the remote box.  if i
create that empty dir everything works fine.

any ideas?

_ugly

Reply via email to