From vim-mac Fri Jun 11 07:50:57 2004 From: Gabriel Birke Date: Fri, 11 Jun 2004 07:50:57 +0000 To: vim-mac Subject: Re: setting up gvim to override other OS X editors Message-Id: <12D9D3B2-BB7C-11D8-897A-003065FA313E () kontor4 ! de> X-MARC-Message: https://marc.info/?l=vim-mac&m=108694026624644 Hello! There are two ways to tell Mac OS X which program to use for a file: The global setting and the per-file setting. Both settings can be reached in the Finder by selecting the .txt file and calling the "Get Info" commmand (Command-I or File Menu). In the info window you can see the section "open with". Here you can select Vim from the drop-down List. After you selected Vim, you have changed the per-file setting. If you want all .txt files to be opened with Vim, press the "change all" button. With this button, you change the global setting. However, there is a small problem: Per-file settings override global settings. "Greedy" programs can set per-file settings so you have to revert the settings via "Get Info" again. I think the per-file setting is done via setting the type and creator code of the file (a feature of the file system). You can find many utilities on Versiontracker which integrate into the context menu or Finder and that let you set type and creator codes. Don't know which creator code Vim has. Leave the type as "TEXT". You can also use the command line tool SetFile from the developer tools CD (its in /Developer/Tools after you installed the developer tools). If you want an absolutely radical approach, write a shell script that sets type and creator for all .txt files with the SetFile command. Call that shell script every 5 or 30 or 60 minutes with a cron job. Hope this helps. With best regards Gabriel Birke -- KONTOR4_Neue Medien Plathnerstraße 5 30175 Hannover Fax: +49 51184 48 98 99 mailto:birke@kontor4.de http://www.kontor4.de Am 10.06.2004 um 23:24 schrieb Steve Michalske: > Hello folks, > > I am trying to set up gvim to be the only editor that I use, but > often text edit will take back owning txt files. how can I force gvim > to be the preferred application? > > It seems that just editing the plist file isn't enough > steve > >