LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 12: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, 12:52 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
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, 01: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 05:43 PM
Vim: ftp save no longer works after reinstall GreenPenInc Linux - Software 0 06-14-2005 02:59 PM
multiple files in VIM james.farrow Linux - Newbie 3 07-09-2004 05:46 AM
Vim editing newbie needs help! andym Linux - Software 1 04-16-2003 03:59 AM
editing two files in vim schatoor Linux - Software 2 12-28-2002 08:56 AM


All times are GMT -5. The time now is 08:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration