Thursday, February 24, 2011

Re: Single Instance in Console?

> This may be what you are looking for:
>
> X terminal 1:
>   vim --servername THEONE
>
> X terminal 2:
>   vim --servername THEONE --remote file_to_edit.txt
>
> This should open the file in vim running in terminal 1.
>

If you don't use --servername with --remote, the server name defaults
to VIM,
so here is an even simpler example:
X terminal 1:
vim --servername VIM

X terminal 2:
vim --remote file_to_edit.txt

Marko

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