title: Emacs shell mode open file in buffer
body: <p>My setup:</p>
  
  <ul>
  <li>Emacs terminal mode (<code>emacs -nw</code>) </li>
  <li>inside it, use the shell mode (invoked with <kbd>M-x</kbd> <code>ansi-term</code>)</li>
  <li>inside this shell, connect to a remote server with ssh</li>
  </ul>
  
  <p>Suppose I'm browsing the remote server inside the shell and find a file I want to edit. Is there a command to open it as a parallel buffer/window?</p>
  
  <p>The only method I know to open a file from the shell is to do <code>emacs -nw</code> again, which isn't quite convenient because a) I don't keep the shell open and b) it's really a different Emacs session, so for instance the "yank buffer" is different.</p>
  
  <p>Edit: if there is a different/better way to work with a remote server with Emacs I'm just as interested; it's what I'm trying to do.</p>