Loading ...
Sorry, an error occurred while loading the content.

Re: (g)vim as default application under OSX Tiger

Expand Messages
  • Stephen Riehm
    ... It goes in /Applications/Vim.app/Contents/info.plist. BUT KEEP THE ORIGINAL! At first when I tried it it seemed to work just fine, then I found that when I
    Message 1 of 9 , May 31, 2005
    • 0 Attachment
      On 30 May 2005, at 1:06, Antti Holvikari wrote:

      > On May 28, 2005, at 11:32 PM, Daniele Venzano wrote:
      >
      >> I've uploaded it to:
      >> http://www.brownhat.org/rlieh/Info.plist
      >
      > Which Info.plist is this? Where should I put it?

      It goes in /Applications/Vim.app/Contents/info.plist.
      BUT KEEP THE ORIGINAL!

      At first when I tried it it seemed to work just fine, then I found
      that when I started gvim from the command line, it would run, but I
      couldn't get the focus into the vim window. vim also didn't show up
      when I tried to switch to it via apple-tab.

      I compared my old and new info.plist's and discovered a few
      differences. When I returned these values to their original values,
      vim worked again as it used to.

      Here's the output from diff -u to fix Daniele's Info.plist:

      --- Info.plist.ckpt 2005-05-29 06:28:48.000000000 +1000
      +++ Info.plist 2005-06-01 16:12:29.000000000 +1000
      @@ -134,15 +134,15 @@
      </dict>
      </array>
      <key>CFBundleExecutable</key>
      - <string>gvim</string>
      + <string>Vim</string>
      <key>CFBundleIconFile</key>
      - <string>appIcon.icns</string>
      + <string>gui_mac.icns</string>
      <key>CFBundleIdentifier</key>
      <string>com.macvim.gvim</string>
      <key>CFBundleInfoDictionaryVersion</key>
      <string>6.0</string>
      <key>CFBundleName</key>
      - <string>gvim</string>
      + <string>Vim</string>
      <key>CFBundlePackageType</key>
      <string>APPL</string>
      <key>CFBundleShortVersionString</key>

      I also noticed that Daniele put entries in there for python scripts
      etc... you may like to also add entries for perl or other file types
      that you may need personally ;-)

      Either way, thanks Daniele!

      Steve
    Your message has been successfully submitted and would be delivered to recipients shortly.