title: Getting the logical path in VIM when there's a symlink
body: <p>I have the following setup:</p>
  
  <pre><code>mkdir /1
  mkdir /1/2
  mkdir /1/2/3
  ln -s /1/2/3 /1/3
  </code></pre>
  
  <p>If I do <code>cd /1/3</code>, and then <code>pwd</code>, I get <code>/1/3</code>. If I use <code>pwd -P</code>, I can get <code>/1/2/3</code>, or <code>pwd -L</code> to force <code>/1/3</code>. </p>
  
  <p>In VIM, I'm looking for a way to get the <code>/1/3</code>.<br>
  If I open a file in <code>/1/3/foo.txt</code>, and I use something like <code>fnamemodify(bufname(winbufnr(0)), ':p:h')</code>, it returns <code>/1/2/3</code>.<br>
  How can I tell it to give me the same directory that <code>pwd</code> would give?</p>