Vim Users, cure your Textmate envy 1

Posted by timgoh
on Monday, April 07

My exposure to Textmate was all “whoa this looks sweet, but I can’t give up my Vim key bindings and plug-ins”. Fortunately there’s ways to accomplish the look of most Textmate installs and not have to switch away from the best editor out there.

Get Monaco font for Linux

  1. Download the Monaco Linux truetype font Monaco_Linux.ttf
  2. Find out what your font directories are:
    ~: cat /etc/fonts/fonts.conf | grep directory -A5
  3. Create a new directory under one of your font directories and move the Monaco_Linux.ttf into it. For my distro /usr/share/fonts/truetype works:
    # mkdir /usr/share/fonts/truetype/custom
    # mv Monaco_Linux.ttf /usr/share/fonts/truetype/custom/
  4. Refresh your font caches:
    # fc-cache -f -v
  5. If you’re using vanilla Vim, you may have to restart your console application of choice, then change your console font. If you’re using GVim, add the line
    :set guifont=Monaco\ 10
    Replace ‘10’ by whatever font size you would like to use. Do note that there is a space after the backslash (ie the space is escaped).

Get Vibrantink or Vividchalk color scheme

Vibrantink link

Vividchalk link

Jo Vermeulen (contributed vibrantink) has a helpful post with a screenshot comparing the original Textmate theme to Vibrantink and Vividchalk.

Put the .vim file you download in your .vim/colors directory, and you can then add the line

:colorscheme vividchalk
to your .vimrc file.

I personally prefer vividchalk myself.

If everything worked out, you now have the ‘bling’ of Textmate with the functionality of Vim. A winning combination, if you ask me!

Comments

Leave a response

  1. NikiApril 21, 2008 @ 01:34 PM
    I have wanted one of these forever! THANKS for the great work
Comment