私はMacとMacVim 7.3を使用しています。vimでファイル名のフルパスへのシンボリックリンクを拡張するには?
私は実際のファイル〜/ some/actual_fileへのリンクであるシンボリックリンク〜/ some/symlinkを持っています。
私が "vim〜/ some/symlink"を実行すると、vimのステータス行に〜/ some/symlinkというファイルが表示されます。
vimの中から「実」ファイル〜/ some/actual_fileの完全なパスを取得するにはどうすればよいですか? vimのステータス行に〜/ some/symlinkの代わりに〜/ some/actual_fileと言って欲しい。
解決策(〜/ some/symlink)は〜/ some/symlinkを返すので、ヘルプは表示されません。
私には何が欠けていますか?ありがとう!
resolve({filename}) *resolve()* *E655*
On MS-Windows, when {filename} is a shortcut (a .lnk file),
returns the path the shortcut points to in a simplified form.
On Unix, repeat resolving symbolic links in all path
components of {filename} and return the simplified result.
To cope with link cycles, resolving of symbolic links is
stopped after 100 iterations.
On other systems, return the simplified {filename}.
vimを使用すると、コマンドを実行してsystem( "cmd")を使用して出力を取得できます。これでmigrは "readlink -m"を呼び出して実際のパスを得ることができます。 – Lynch