I also just put the MacVim icon on my dock (I don't keep any program that's on my dock when off), so I can drag it onto the MacVim icon and open it at any time. I've simply symlinking TextEdit.app to wherever I want to start it, and that works well for me. Though it may be worth a shot, if it fails, then revert to using pico for a command line editor: " export EDITOR=/Applications/MacVim.app"Īlthough that may not work, that may only replace pico with MacVim - which isn't at all what we want, we still want pico in there. Though you can try the UNIX method though, which is what works on most other non-proprietary UNIX systems, and all Linux systems, which I didn't think about until just now: I can believe it, because it's not in Apple's interest for the default editor to be changed. It wasn't given a way to handle null strings for the MIME type or extension. The problem is that it relies on MIME types and extensions to pick the app to open it with. If I didn't have TextEdit zipped up, it would have opened with that (tried to "Change All") before I zipped up TextEdit. Also, if I go into "get info" on the new file, the "open with" dialog is blank, like it would be for a blank file. I mean right now it won't because the fact that I hid TextEdit along with a pointer at TextEdit to MacVim is holding, though that's a hack, that's nothing like actually changing the default editor. If I touch another file it will again open with TextEdit. If I hit "Update" it will set it as the default application to open with for THAT file only. If I hit "Cancel" or "Don't Update" it just goes away. My choices then are " Cancel", " Don't Update", and " Update. Do you want to open "filename" with "MacVim.app"?" " An error occured whioe changing the application that opens "filename" because not enough information is available. It'll let me change it for each individually, but obviously that's a pain, if I click "Change All" it throws an error saying: The only problem is that mac seems to have a big problem for defining an application to open files where "type" is null and "extension" is null, since it's a blank/flat UTF-8 text file it has none of the above, the GUI extension of "open" in which you change what opens it via "Get Info" depends on the extension and the mime type, which this has neither. That was the first thing I tried, before I started linking everything. ![]() Thank you for your reply, though that doesn't fix my problem. I realize to some this is a weird request, so I ask if you don't have any good input you just ignore it. Which I guess is fine, as long as in the GUI is opening with MacVim instead of TextEdit.Īnybody have any ideas on the proper way of doing this? I realize it involves the amework database, but I can't figure out how to use that for hell. LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier. This time when I type " open -e" it throws the following error: I zipped up TextEdit.app and now when I open blank text files it opens in MacVim like it should. 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). BUT - if I go to terminal and type " open -e" it opened up TextEdit (not sure how). I moved TextEdit.app to another drive and my alias worked fine on double clicking a blank file, it opened up MacVim. ![]() 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.") 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. Though I want to set it as my default editor for editing blank files (plain UTF-8 text files without an extension). I've used VI since I've been using computers so naturally I took very well to MacVim.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |