Sunday, July 3, 2011

Re: Way of opening local gVim edit remote file via putty?

On Jul 3, 1:31 am, Laph <laph...@gmail.com> wrote:
> Hi all,
>
>
> So I think it would be a great idea using local gvim with my own vimrc to
> edit remote files. I know the way of `:e scp://...' to edit the specified
> remote file via scp, but it need to switch from putty to gvim when I want to
> open remote files after some operation in the terminal, say grep, tail, or
> make. And switch it back if I want to take another operation. It is
> quite inefficient.
>

From the Vim help for 'scp':
-----------------------------------------
"Netrw supports "transparent" editing of files on other machines using
urls
(see |netrw-transparent|). As an example of this, let's assume you
have an
account on some other machine; if you can use scp, try: >

vim scp://hostname/path/to/file
"
--------------------------------------------

I think there are some questions/answers on StackOverflow regarding
this. Try searching there for '[vim] remote file edit':
http://stackoverflow.com/search?q=[vim]+remote+file+edit

-- Herb

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: