Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-12-2009, 11:53 PM   #1
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
Use vim program from remote host.....

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:

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>"

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
Old 01-13-2009, 12:19 AM   #2
Registered: Jun 2008
Distribution: Fedora, RHEL, Ubuntu
Posts: 33

Rep: Reputation: 15
try konqueror fish

Why don't you try that "way" understated konqueror?
It supports "fish".
Try this:
  1. Open konqueror
  2. in the location field type:
  3. fish://servername (ipname or octals) and hit enter.
    e.g. fish://
  4. You will be prompted for your username and password.
After that you should be able to see the files in the user's home.
You should then be able to edit those files with whatever editor you can open from within konqueror.
Old 01-13-2009, 08:11 AM   #3
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Original Poster
Rep: Reputation: 30
Thanks for the sugestion, but i'd use vim and scp instead (Also i dont have neither want konqueror)
The idea is to edit the file locally on their server.
Old 01-13-2009, 10:13 PM   #4
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Original Poster
Rep: Reputation: 30
Script language

is it possible that the above script is dos "script" language??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 01:21 AM
Editing remote files (on FTP) with VIM does not works depi Linux - Software 3 09-04-2006 08:23 AM
How do I program in Emacs/Vim? coolblue Programming 5 07-29-2005 04:00 AM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 09:48 AM
VIM via remote SSH connection causes seg fault nkendrick Linux - Software 1 11-08-2003 07:57 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration