title: Using vim to remotely edit a file on serverB only accessible from serverA
body: <p>Although I have never tried this, it is apparently possible to remotely edit a file in vim as described <a href="http://vim.wikia.com/wiki/Editing_remote_files_via_scp_in_vim" rel="nofollow">here</a>. In my particular case the server I need access to can only be accessed from on campus, hence I have to log into my university account like so:</p>
  
  <pre><code>ssh user@login.university.com
  </code></pre>
  
  <p>then from there log into the secure server like so:</p>
  
  <pre><code>ssh user@secure.university.com
  </code></pre>
  
  <p>I have keyless ssh set up, so I can automate the process like so:</p>
  
  <pre><code>ssh user@login.university.com -t "ssh user@secure.university.com"
  </code></pre>
  
  <p>is there anyway to remotely edit a file such as <code>secure.university.com/user/foo.txt</code> on my local machine?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My intention is to use vim on my local machine as it is impractical (move <code>.vim folder</code>, copy <code>.vimrc</code>) and in some cases impossible (recompile vim with certain settings, patch vim source, install language beautifiers) to make vim on the remote machine behave the way I want it to behave. What I want is to issue something like this (this is not accurate scp, I know)</p>
  
  <pre><code>vim scp://user@login.university.com scp://user@secure.university.com//home/user/foo.txt
  </code></pre>