Hey,
I despise TextEdit. I've used VI since I've been using computers so naturally I took very well to MacVim. Though I want to set it as my default editor for editing blank files (plain UTF-8 text files without an extension).
So I threw the .app inside of a folder named "oldTextEdit" and created a symlink to MacVim and named it TextEdit.app and placed it in /Applications, but it doesn't work.
When I go to the command line and type "open -e" it still opens with TextEdit.app - The only thing I can think of is that it ignores symlinks (or as mac calls them, an "alias.")
I moved TextEdit.app to another drive and my alias worked fine on double clicking a blank file, it opened up MacVim. BUT - if I go to terminal and type "open -e" it opened up TextEdit (not sure how). Now when I click that same UTF-8 blank text file (created using "touch") it opens in TextEdit (again, I have no clue how, TextEdit.app is on a different drive).
Update:
I zipped up TextEdit.app and now when I open blank text files it opens in MacVim like it should.
This time when I type "open -e" it throws the following error:
LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier com.apple.TextEdit.
Which I guess is fine, as long as in the GUI is opening with MacVim instead of TextEdit...
Anybody have any ideas on the proper way of doing this? I realize it involves the LaunchServices.framework database, but I can't figure out how to use that for hell.
I realize to some this is a weird request, so I ask if you don't have any good input you just ignore it.
Thank you for your time.
I despise TextEdit. I've used VI since I've been using computers so naturally I took very well to MacVim. Though I want to set it as my default editor for editing blank files (plain UTF-8 text files without an extension).
So I threw the .app inside of a folder named "oldTextEdit" and created a symlink to MacVim and named it TextEdit.app and placed it in /Applications, but it doesn't work.
When I go to the command line and type "open -e" it still opens with TextEdit.app - The only thing I can think of is that it ignores symlinks (or as mac calls them, an "alias.")
I moved TextEdit.app to another drive and my alias worked fine on double clicking a blank file, it opened up MacVim. BUT - if I go to terminal and type "open -e" it opened up TextEdit (not sure how). Now when I click that same UTF-8 blank text file (created using "touch") it opens in TextEdit (again, I have no clue how, TextEdit.app is on a different drive).
Update:
I zipped up TextEdit.app and now when I open blank text files it opens in MacVim like it should.
This time when I type "open -e" it throws the following error:
LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier com.apple.TextEdit.
Which I guess is fine, as long as in the GUI is opening with MacVim instead of TextEdit...
Anybody have any ideas on the proper way of doing this? I realize it involves the LaunchServices.framework database, but I can't figure out how to use that for hell.
I realize to some this is a weird request, so I ask if you don't have any good input you just ignore it.
Thank you for your time.