Saturday, March 3, 2012

Re: installing/upgrading Vim

On 03/03/12 05:48, Phil Dobbin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi, all.
>
> I've got a version of Vim (see below) which was the first Vim I used. I
> compiled it myself from source into /usr/local/& nowadays the Vim I use
> is in /opt/local/& has very many more features.
>
> Question is I've pulled the latest source code from Mercurial with the
> intention of installing that into /usr/local/& now no longer having the
> original source code I can't do a `sudo make uninstall` to clean the
> directory.
>
> Which is the better option? Trying to clean the old Vim from /usr/local/
> (& if so, what's the best way to do it) or just install over the top?

The following will uninstall Vim if you have a standard installation:

rm -Rvf /usr/local/vim /usr/local/share/vim/vim??

You may want to do also the following (e.g. by pasting it as a script to
be run by bash) if you want to remove all traces of Vim executables
(other than macvim) from your system, but you should NOT do it if you
plan on reinstalling Vim (immediately or at some later time):

!#/bin/bash
test -x /usr/local/bin/vim && rm -v /usr/local/bin/vim
test -x /usr/local/bin/gvim && rm -v /usr/local/bin/gvim
# gvim could also be a softlink to macvim,
# which we are not removing
test -x /usr/local/bin/vi -o -L /usr/local/bin/vi \
&& rm -v /usr/local/bin/vi
test -L /usr/local/bin/ex && rm -v /usr/local/bin/ex
test -L /usr/local/bin/exim && rm -v /usr/local/bin/exim
# exim could also be an email routing program (unrelated to Vim), but
# in that case it would not be a softlink in /usr/local/bin
test -L /usr/local/bin/view && rm -v /usr/local/bin/view
test -L /usr/local/bin/gex && rm -v /usr/local/bin/gex
test -L /usr/local/bin/gview && rm -v /usr/local/bin/gview
test -L /usr/local/bin/rvim && rm -v /usr/local/bin/fvim
test -L /usr/local/bin/rview && rm -v /usr/local/bin/rview
test -L /usr/local/bin/rgview && rm -v /usr/local/bin/rgview
test -L /usr/local/bin/evim && rm -v /usr/local/bin/evim
test -L /usr/local/bin/eview && rm -v /usr/local/bin/eview
test -L /usr/local/bin/vimdiff && rm -v /usr/local/bin/vimdiff
test -L /usr/local/bin/gvimdiff && rm -v /usr/local/bin/gvimdiff

Best regards,
Tony.
--
Equality is not when a female Einstein gets promoted to assistant
professor; equality is when a female schlemiel moves ahead as fast as a
male schlemiel.
-- Ewald Nyquist

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: