here is the situation.
I ssh to a server for my work, do this from home.
the server only has vi-tiny installed and i have no acces to install vim full.
i tryed installing vim in $HOME, complain about ncurses, try that one, did not wanna compile.
I dont wanna mess around too much on the server.
One solution i taught would be nice, and could be usefull in some other case, is to run the vim from my computer to edit their file.
I know i can open a remote file with scp and vim.
but is it possible to load vim from my computer while im logged through ssh on there server.
the idea is that its quicker to type :new file then :new scp .... .... (syntax might not be right...)
and some other reason... (nothing major but would be nice)
found this in vim doc:
Quote:
8.5 Remote host invocation
It is possible to use Vim as an internode editor.
1. Edit some file from remote node:
vi "<server>""username passwd""::<device>:<path><filename>;<version>"
example:
vi "pluto""zay passwd""::RF10:<USER.ZAY.WORK>TEST.C;1"
Note: syntax is very important, otherwise VMS will recognize more parameters
instead of one (resulting with: file not found)
2. Set up Vim as your internode editor. If Vim is not installed on your host,
just set up your IP address, full Vim path including the server name and run
the command procedure below:
$ if (p1 .eqs. "") .OR. (p2 .eqs. "") then goto usage
$ set disp/create/node=<your_IP_here>/trans=tcpip
$ define "VIM "<vim_server>""''p1' ''p2'""::<device>:<vim_path>"
$ vi*m :== "mcr VIM:VIM.EXE"
$ gv*im :== "spawn/nowait mcr VIM:VIM.EXE -g"
$ goto end
$ usage:
$ write sys$output " Please enter username and password as a parameter."
$ write sys$output " Example: @SETVIM.COM username passwd"
$ end:
Note: Never use it in clustered environment (you do not need it), and load could
be very-very slow, but even faster then a local Emacs. :-)
|
the given script in 2. i think should do what i want, but its not bash script (i think) and that is beyond my scripting skill.
any idea if my taught is possible?
Thanks you all for your time