Switching to Gnome from KDE
Eric Lemoine
eric.lemoine at gmail.com
Fri Oct 13 18:04:20 UTC 2006
On 10/13/06, Dotan Cohen <dotancohen at gmail.com> wrote:
> On 13/10/06, Eric Lemoine <eric.lemoine at gmail.com> wrote:
> >
> > Based on vim doc you can browse a remote dir by using
> > scp://<remote_host>/path/to/your/dir/. Do not forget the trailing
> > slash.
> >
>
> Where was this in the docs?
netrw help (:h netrw) has this:
---
For browsing on a remote host, "edit" a directory (but make sure that
the directory name is followed by a "/"):
vim scp://hostname/
vim ftp://hostname/path/to/dir/
See |netrw-browse| for more!
---
>
> Also, as soon as I hit "s" vi moves into insert mode, so I assume that
> I must use:
> e: scp://user:password@domain.com//
>
> Is this correct? Becasue it seems to connect, but I se no listing of
> files. And when I try:
> e: ls
> Vi bothers to open a new file called "ls". What am I doing wrong?
I just did:
$vim scp://localhost/
As expected, that opened vim and listed the content of /
I also tried lauching vim and doing:
:e scp://localhost/
Again, it worked as expected.
As indicated in vim's netrw online help, do not forget to add these
two lines to your .vimrc:
set nocp " 'compatible' is not set
filetype plugin on " plugins are enable
--
Eric
More information about the ubuntu-users
mailing list