Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:33:01+00:00 2026-05-25T00:33:01+00:00

I know this might be more appropriate at Ask Different, but as I tried

  • 0

I know this might be more appropriate at Ask Different, but as I tried adding tags there, there was no vim tag, only macvim. So I figured I might get a better audience here.

In the Terminal, I do the following

$ vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 31 2010 13:33:49)

When I browse to http://www.vim.org, I see a news item

Vim 7.3 released!

How do I update my built-in vim? I would very much like to do it cleanly (i.e. no duplicate installations, or any additional downloads, no macports, etc.)

I considered using Mercurial (as I already use it for other things), as per the instructions here.

$ hg clone https://vim.googlecode.com.hg/ vim
$ cd vim/src
$ make

But I think that would make a duplicate installation. Despite my “clean” requirement as mentioned above, “unclean” solutions are also welcome, since maybe there really is no other way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:33:02+00:00Added an answer on May 25, 2026 at 12:33 am

    If I understand things correctly, you want to install over your existing Vim, for better or worse 🙂 This is a bad idea and it is not the “clean” way to do it. Why? Well, OS X expects that nothing will ever change in /usr/bin unbeknownst to it, so any time you overwrite stuff in there you risk breaking some intricate interdependency. And, Let’s say you do break something — there’s no way to “undo” that damage. You will be sad and alone. You may have to reinstall OS X.

    Part 1: A better idea

    The “clean” way is to install in a separate place, and make the new binary higher priority in the $PATH. Here is how I recommend doing that:

    $ # Create the directories you need
    $ sudo mkdir -p /opt/local/bin
    $ # Download, compile, and install the latest Vim
    $ cd ~
    $ hg clone https://bitbucket.org/vim-mirror/vim or git clone https://github.com/vim/vim.git
    $ 
    $ cd vim
    $ ./configure --prefix=/opt/local
    $ make
    $ sudo make install
    $ # Add the binary to your path, ahead of /usr/bin
    $ echo 'PATH=/opt/local/bin:$PATH' >> ~/.bash_profile
    $ # Reload bash_profile so the changes take effect in this window
    $ source ~/.bash_profile
    

    Voila! Now when we use vim we will be using the new one. But, to get back to our old configuration in the event of huge f*ckups, we can just delete the /opt directory.

    $ which vim
    /opt/local/bin/vim
    $ vim --version | head -n 2
    VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 27 2011 20:55:46)
    MacOS X (unix) version
    

    See how clean this is.

    I recommend not to install in /usr/local/bin when you want to override binaries in /usr/bin, because by default OS X puts /usr/bin higher priority in $PATH than /usr/local/bin, and screwing with that opens its own can of worms…. So, that’s what you SHOULD do.

    Part 2: The “correct” answer (but a bad idea)

    Assuming you’re set on doing that, you are definitely on track. To install on top of your current installation, you need to set the “prefix” directory. That’s done like this:

    hg clone https://bitbucket.org/vim-mirror/vim or git clone https://github.com/vim/vim.git
    cd vim
    ./configure --prefix=/usr
    make
    sudo make install
    

    You can pass “configure” a few other options too, if you want. Do “./configure –help” to see them. I hope you’ve got a backup before you do it, though, in case something goes wrong….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Know this might be rather basic, but I been trying to figure out how
I know this might be a long shot, but here it goes. I have
I know this might be a bit awkward but I am trying to modify
I know this might seem a controversial question but it really is not meant
I know this might sounds not reasonable, and might be a bad design. But
I know this might be obvious, but bear with me my generic programming background
I know this might seem strange on the face on it but, if I
I know this might seem odd for many Silverlight professionals, but alas, thats the
I know this might sound really ridiculas but all of a sudden when I
I know this might be a long shot, but I am hoping that this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.