Hi,
Another simple question:
In a vim script, how do I compare two file names to see if they are the same
file? They may be relative or absolute paths.
Obviously if I can expand both to a full path then the comparison is easy,
but expand("path/file:p") doesn't do it. ":p" only works after "%" etc.
If it makes it any easier, it's actually the current file name I want to
compare with, ie something like:
if (expand("%:p") == expand("path/file:p"))
Except that the second part won't expand.
Thanks,
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---