macvim doc icons redux & howto

So I had some questions on how I generated the MacVim document/file type icons since the included script has been broken for a lot of people.

To use the /src/macvim/icons/ script, you need to make a few changes:

  1. You need a 512px version of the apple “GenericDocumentIcon.icns”
    • I took the 1024px version from Mavericks, exported all the png files, and created a new icns with 512px max size.
    • I placed the 512px icon in the “icons” directory and modified the docerator.py and make_icns.py files

  2. Copy or export a 512px version of the icon you want to use, rename it ‘vim-noshadow-512.png’, and place it in the /icons folder.
  3. Download a pre-compiled version of “makeicns” and place it in the /icons/makeicns folder, then comment out the relevant portion of the makefile.
  4. Modify the make_icns.py script to generate 512px for all sizes (alternatively you could just change every icon type to the ‘large’ preset instead of ‘small’, I just found it was fewer changes to add 512px to the small preset.)

  5. ‘cd’ into the /icons directory and run: ‘make getevny’ followed by ‘make all’
    (Note: this will generate an error at the end because we’re no longer using the ‘link’ option for any icons, you could always comment out the call to ‘link’ but I just haven’t bothered.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s