Vim on Mac OSX

I’m editing a few pages on a few sites today and realised that I didn’t have a proper text editor installed on my Mac desktop.

There is a text editor app, but it doesn’t have syntax highlighting, nor does it do a lot of the other funkier stuff that Vim does “out of the box”.

The silly thing is that a Google search for vim on osx (you can adjust the keywords to suit your taste) keeps taking me to this site, which doesn’t have a very recent version of vim. I’m sure their version is fine, but the installer is sadly lacking ie. you need to decompress files and move them around the place, whereas this sourceforge project is almost “sane”.

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

14 comments

  1. No. It lives in its own /opt/local directory away from everything else. MacPorts is a port system similar to the BSD one. It has a couple of small issues but I wouldn’t use a Mac without it!

  2. (just in case you missed my tweet!)
    make sure to RTFM before installing MacPorts otherwise you’ll get it wrong and you’ll lose a lot of time. Key thing is you must install Xcode and X11 (app and sdk) from the OS/X dvd that came with your Mac before you install MacPorts.
    Also, make sure to update Xcode to its latest (running Software Update will do the trick) otherwise some ports might have problems building.

  3. Michele, the best editor I have seen to do this is TextMate. Absolutely brilliant.
    You can even create a project, drag all your website into the project and begin editing.
    Brian

  4. Which release of OS X do you have? I can’t remember ever getting an osx mac that didn’t have vim pre-installed;

    colmmacc@thoth (~) $ uname -a
    Darwin thoth.stdlib.net 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386
    colmmacc@thoth (~) $ which vim
    /usr/bin/vim
    
  5. @Brian – I’ll have a look into that – thanks 🙂
    @Colm – sorry. I should have specified. I was looking for something equivalent to gVIM ie. with a decent GUI

  6. Whats the point of using vi if you want to use a gui;)
    Vi, emacs, vim are all installed on OS X. You can run them from the command line. There is also an X-server included as an extra on the OS X cd (part of the developer tools). If the xserver is running you can get a gui version of emacs, vim etc. AFAIK the macports versions are similar to the included version: i.e. command-line unless you have an x-server running.
    If you’re open to emacs you could try aquamacs. http://aquamacs.org/. Or if you’re willing to pay, Textmate is the business.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version