I like to use macOS's alias feature to not have to make redundant files. These aliases work great with Chrome and TextEdit. When I open them with vim, however, I get a giant messy file (presumably the way macOS encodes aliases). Is there a way to edit the actual file through an alias with vim?

  • Just curious as to why you want to edit a macOS Alias file? – user3439894 Feb 5 '18 at 23:16

macOS aliases are just normal files. macOS knows when an alias is being accessed and passes the right file along to the app. Since aliases are just normal files, other tools just open the alias file itself rather than reading the contents of the file and finding where it points to.

If you actually want a link to another file, you can create a symbolic link instead of using aliases:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .