Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Easily install the latest GUI Vim application UNIX
In my search for the nicest text editor, I have kept returning to Vim. I would use it for a little while, and then I would lose interest because something or another wasn't quite working the way I liked. This last time, I manged to solve all of those things, and I even found some extra features I didn't know about. Right now, I am using Vim.app (native GUI), version 7.1.161, with all the latest patches. Even better, I did not have to puzzle over configuration settings or anything to compile it - I just entered a command, and everything else relating to compiling was done automatically. How is this possible, you ask? All will be revealed...

Prerequisites:
  • Developer Tools
  • Over 64MB free disk space
  • A high-bandwidth connection
  • Some familiarity with the command line


Okay, here are the steps:
  1. Visit the OS X section of the AAP site, and follow the directions there.
  2. Follow these directions. Go read a book or something while aap compiles Vim for you. Note, I chose /usr/local/aap/vim as the folder for aap to use. I will assume that you will use the same.
  3. Execute the following command as root (this is one long command line):
  4. Now, execute the following command not as root (this is also a long command line):
  5. Now, put /Applications/Vim.app in your dock, and install the remaining gzipped vimballs (the *.vba.gz files). To install a gzipped vimball, do the following:
    1. Drag the .vga.gz file onto the Vim icon on the dock.
    2. Enter :so % and then hit Return.
And you're done! Here are some extra steps to make using Vim nicer: That's all. Enjoy your new fancy text editor!
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[14,572 views]  

Easily install the latest GUI Vim application | 9 comments | Create New Account
Click here to return to the 'Easily install the latest GUI Vim application' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily install the latest GUI Vim application
Authored by: etresoft on Dec 07, '07 08:51:18AM
There is a better version of "MacVim" available. Download it from Google Code. It features tabs, transparency, etc. - all the modern stuff you expect. Plus, you don't have to compile it.

[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: adrianm on Dec 07, '07 10:54:24AM
You can also get it from http://macvim.org/OSX/ although I suspect the googlecode version might be nicer.

Really no need to build it yourself unless you have any specific requirements.

---
~/.sig: not found

[ Reply to This | # ]

Easily install the latest GUI Vim application
Authored by: jeffulri on Dec 08, '07 08:57:47PM

You have an odd sense of the word, "easy." That, and your instructions don't work. Take the other suggested routes for obtaining this software, folks.



[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: Ozguru on Dec 09, '07 02:03:51PM

Instructions worked fine for me except that the tar of vimball did not unpack into a vimball directory. Easily fixed. Instead of "mv vimball/* ~/.vim", you need to move the extracted directories instead.



[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: jeffulri on Dec 09, '07 08:10:31PM

Thanks for the correction.



[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: Alex Yeh on Dec 12, '07 03:09:31PM
After playing with this, I found out (the hard way) that the suggested method of using aap's "config.arg" file to customize vim (adding, for example, the perl, python, and ruby interpreters and the "huge" featureset) doesn't really work. So, moving forward, I have found a hybrid method that works quite well. Here are the steps:
  1. make a folder to build vim in, and "cd" into that folder.
  2. use aap to download vim, and apply all the patches, like so:
  3. aap -f http://www.a-a-p.org/vim/main.aap fetch CVS=no
  4. write a shellscript to pass arguments to "configure." For the sake of this comment, I'll call the script "configurator." Here's a copy of a shellscript that I use. Save the script in the "vim" folder that aap built, and "chmod" it 755
  5. issue this command in the folder the script is in: ./configurator.sh && make && make install
That's all. Here is a compressed file containing my .vim folder, .profile, .vimrc, and .gvimrc files. These allow me to use the new version of Vim for editing my crontab file, among other things. Sorry about the problems with the original hintů I guess I just got too excited. ;)

[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: Seth Milliken on Jan 06, '08 06:45:01PM
How is this method easier than just using MacPorts? e.g.
port install vim-app
And what advantages does it offer over the MacPorts installation?

[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: Alex Yeh on Feb 05, '08 09:08:32PM

It accomplishes pretty much the same thing, except that you don't need Mac Ports to do it, and the patch level will be more recent, if only just (I'm using patch level 242, and MacPorts distributes patch level 241 right now)



[ Reply to This | # ]
Easily install the latest GUI Vim application
Authored by: Alex Yeh on Feb 05, '08 10:34:54PM

aside from that, I had a bad experience with macports last year (my first time): It consistently failed to compile the latest version of vim. This method is pretty much failproof, and completely within your control (unlike macports).



[ Reply to This | # ]