Tuesday, July 5, 2011

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

On Sun, Jul 3, 2011 at 4:31 PM, Laph <laphone@gmail.com> wrote:
> Is it possible a way in putty terminal opening my local gvim in windows
> desktop to edit the remote file without manually switching window and
> retyping `:e scp://...' again and again?
> Thanks in advance!

Theoretically, it is possible, you can write some daemon app which
listens in your local computer, and a client utility which run in your
remote server.

When you execute a command in your remote server, it communicates with
the daemon app in your local computer, and the local app calls gvim
--remote-silent to do what you want, and then switch the focus into
your local gvim.

You need to write a simple client/server socket app to do this, which
could be less than 100 lines.


But IMO the better way is to define your own .vimrc in the remote
computer and launch vim with "vim -u .vimrc.yours", you can redefine
the 'rtp' in .vimrc so that the .vim directory can be your own
directory. you can create an alias for that.

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

Post a Comment