LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2004, 01:43 AM   #1
robertmarkbram
Member
 
Registered: May 2003
Location: Melbourne, Australia
Distribution: Cygwin, Windows XP
Posts: 69

Rep: Reputation: 15
VIM: editing files via ftp


Hi All!

I am using RH9 with bash and VIM 6.1

I have plugins enabled in VIM:
robertmarkbram:/tmp/
$ cat ~/.vimrc | grep filetype
" Use the default filetype settings, so that mail gets 'tw' set to 72, filetype plugin indent on

I am trying to edit files via ftp.

Using gftp, I can log onto my server like this
host name: myhost.edu.au
Port 20
username: rob
password: blah
and grab a file /rob/My Web/default.asp

But I am having trouble editing the file. I tried each of the following strings:
vim ftp://phd.netcomp.monash.edu.au/rob/My\\\ Web/default.asp
vim "ftp://phd.netcomp.monash.edu.au/rob/My\\ Web/default.asp"
vim 'ftp://phd.netcomp.monash.edu.au/rob/My\ Web/default.asp'

I got this error message after entering username and password:

shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
4 lines filtered
Error detected while processing function <SNR>14_NetRead..<SNR>14_NetGetFile:
line 13:
Can't open file /tmp/v890143/0
Hit ENTER or type command to continue

Only "/tmp/v890143/0" changed each time.

When I tried this http string:
vim http://myhost.edu.au/RobertMarkBram/default.asp

I succesfully opened the file, but for reading only - and it didn't ask for my username or password.

Any ideas would be most appreciated!

Rob
 
Old 10-17-2004, 01:52 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
ftp has a limited shell, its only intention is to retrieve or put files on a server, not editing. Use ssh or other means for direct access (via shell) to this server if you want to edit via a command line.
 
Old 10-17-2004, 02:41 AM   #3
robertmarkbram
Member
 
Registered: May 2003
Location: Melbourne, Australia
Distribution: Cygwin, Windows XP
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
ftp has a limited shell, its only intention is to retrieve or put files on a server, not editing.
Hmm.. but I am having trouble using vim which has this capacity:
http://www.polarfox.com/vim/manual/v61/pi_netrw.html

At least, I am sure that is what this plugin is meant for..

Rob
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim and vi editing question penguin_powered Programming 5 07-24-2005 06:43 PM
Vim: ftp save no longer works after reinstall GreenPenInc Linux - Software 0 06-14-2005 03:59 PM
multiple files in VIM james.farrow Linux - Newbie 3 07-09-2004 06:46 AM
Vim editing newbie needs help! andym Linux - Software 1 04-16-2003 04:59 AM
editing two files in vim qanopus Linux - Software 2 12-28-2002 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 AM.

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