Opening vim in new xterm+screen window in same session

Dhyanesh (ધયાનેશ) <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAHrEQpqxGXKJ1FSBdK87grhuroD-pkHsMf7pk0SA_P21PqEhXg@mail.gmail.com>
Hi

I typically have a single screen session to which I connect using screen
-x. Whenever I want to edit a file with vim, I'd like to:

1. Open a new xterm.
2. Connect to the screen session.
3. Create a new screen window and start vim in it.

Ideally I'd like the following command to work (from within a screen
session):

xterm -e screen vim foo.cc

However, it partially works, the new xterm is created and has the STY
variable. Thus screen opens a new window in that same session and starts
vim. However, the new xterm window doesn't connect to that session. Any
thoughts on why this happens? I'm using screen version 4.02.

Thanks,

Dhyanesh

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.