Saturday, March 3, 2012

Re: installing/upgrading Vim

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/03/2012 09:15, Tony Mechelynck wrote:


> On 03/03/12 05:48, Phil Dobbin wrote:

>> 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


Hi, Tony.

Thanks for that. The first rm -Rvf will work in this instance I think.
It was my first stab at Vim & I only built a console version. The
console version I use now has no links to it & is in a completely
different directory & the MacVim I built from source into the Apple
filesystem as per instructions I believe from Bjorn's README.

I'm using msmtp as replacement for sendmail so exim isn't involved but
to be on the safe side I'll run a `find / -name vim 2> /dev/null` to be
on the safe side.

Cheers,

Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPUf6QAAoJEKpMeDHWT5ADPWMH/3rt17tUQVnXBNndhtX5L4YU
ZBZbQDmhJX/PgqJfZ1er6Tkdw4vmvomb8D9aV4hJAqdcQKrtYdQKzewUWoy+pA/0
zwmvU8+VPaU3upbO9pitmAn1xMXNqihOLj6YBqNmbl4iXCAc5eEQLUA3qy6XLYGz
zO7yvQfnyYy5B+1fWCOOm8B2u4RXBsqkb2t5vc//KwPqwkDu29lK3KFL3fU0HlYB
CnKO0loJEk29F+3xSL8EtlobIVSdqKMCYzLOsEZWeGYGg6Eg66E/pfJ4znWshxGm
dks8OTa6ch7mIl+mC8is7GMc8xkqj0M8+f01xEmcTEgSsBwEE5bdvA3OpbjD4Hw=
=HDpH
-----END PGP SIGNATURE-----

--
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: