instructions for installing macvim

912 views
Skip to first unread message

Yvonne Watkins

unread,
Mar 19, 2012, 5:35:28 PM3/19/12
to vim...@googlegroups.com
I'm going to preface this post with: I'm not a complete idiot, just a PC user trying to hop the fence to the mac world.

I'm attempting to install MacVim on my Mac (Snow Leopard) I downloaded alexloveltroy-macvim zip file, and then unzipped it, but could not find a package file (*.pkg) within that file. (Normally, for my other mac apps, I have been double clicking a pkg file and then dragging the program icon into the application folder.)

Then I tried down loading and untarring the .tar file. No .pkg file in that build either.

Then on one of the forums I read that I can just place the macvim.app file in the path and update my path with this new file, and then I could be good to go, but I can't find the macvim.app file either.

Can someone please provide the exact location within the build where the pkg file lives?
Or please provide more detailed instructions on how to install?

Thanks,
n00b - Yvonne

Cássio Marques

unread,
Mar 20, 2012, 12:07:13 PM3/20/12
to vim...@googlegroups.com
- Download this file: LEGACY-OSX-10_6-MacVim-snapshot-62.tbz
- Extract it
- Copy the MacVim file to your Applications folder
- cp the mvim file to /usr/bin

That's it, works pretty well for me, also on Snow Leopard.

-- 
Cássio Marques

--
You received this message from the "vim_mac" 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

Adimir Colen

unread,
Mar 20, 2012, 1:14:49 PM3/20/12
to vim...@googlegroups.com
You can use the "homebrew" to install several programs on the mac, and theninstall https://github.com/mxcl/homebrew/wiki/installation MacVim, "brew installMacVim" I recommend this
--
@adimircolen

Darcy

unread,
Mar 20, 2012, 1:21:33 PM3/20/12
to vim_mac
I find it easier to use brew.

1) Install brew. http://mxcl.github.com/homebrew/

1.5) To make binaries installed by brew take precedence over other
binaries on your OS, make sure /usr/local/bin is at the front of your
path. You can do this by adding this to your bashrc.

# Move (or Add) /usr/local/bin to the front of the path
[ -d /usr/local/bin ] && export PATH=$(echo /usr/local/bin:$PATH | sed
-e 's;:/usr/local/bin;;')

2) `brew install macvim` from a command line. This installs to `/usr/
local`. You can keep all of your brew installed formula (aka
applications) up to date with `brew upgrade` or just upgrade macvim
with `brew upgrade macvim`.

3) Create environment variables and aliases for macvim in your bashrc.
For example:

vim='mvim -v'
alias vim="${vim}"
alias gvim="mvim"
export EDITOR="${vim} -g --remote-tab-silent"
export GIT_EDITOR="${vim} -g -f"

Note: I create the vim environment variable because I use it multiple
times...
Note: the terminal version of vim is also included with macvim. It's
newer than the vim that comes with OS X, and it includes support for
ruby and python plugins.
Note: `mvim` is added to /usr/local/bin by brew...

Darcy

On Mar 20, 12:07 pm, Cássio Marques <cassio...@gmail.com> wrote:
> - Download this file: LEGACY-OSX-10_6-MacVim-snapshot-62.tbz (https://github.com/downloads/b4winckler/macvim/LEGACY-OSX-10_6-MacVim...)

Stanislaw Pusep

unread,
Mar 20, 2012, 2:02:12 PM3/20/12
to vim...@googlegroups.com
Install MacPorts: http://www.macports.org/install.php
Then do "sudo port install MacVim +cscope +huge +perl +python +ruby +tcl" to install the full version.

Bee

unread,
Mar 20, 2012, 3:37:11 PM3/20/12
to vim_mac
Maybe your download was corrupted.

Go here:
<https://github.com/alexlovelltroy/macvim/downloads>

Download:
MacVim-snapshot-64-SL.tbz

Once xpanded it should contain:
mvim
MacVim
README.txt

Copy MacVim to your Applications folder.

It works great here, 10.6.8

Bill

Andrew Stewart

unread,
Mar 21, 2012, 4:48:08 AM3/21/12
to vim...@googlegroups.com

On 20 Mar 2012, at 18:21, Darcy wrote:
> vim='mvim -v'

How does the -v flag work? I can't find it documented in "Starting MacVim" and it's not used in the `mvim` script.

Thanks in advance,

Andy Stewart
----
http://airbladesoftware.com

Phil Dobbin

unread,
Mar 21, 2012, 5:29:12 AM3/21/12
to vim...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21/03/2012 08:48, Andrew Stewart wrote:
>
> On 20 Mar 2012, at 18:21, Darcy wrote:
>> vim='mvim -v'
>
> How does the -v flag work? I can't find it documented in "Starting MacVim" and it's not used in the `mvim` script.

It aliases console Vim to GUI vim rather than creating a symlink a la
`sudo ln -s $(which gvim) $(which vim)` which is the way personally I'd
do it.

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/

iQEcBAEBAgAGBQJPaZ9kAAoJEKpMeDHWT5ADqHcIAKPsgOYT8gPOXOF6zRy+Svde
8ZUgqZlpFpilyA9wSv53z2OoX9BDPHfCf1WK7RrXSdrzTyIx1zU48LIt1TgsPzkw
ygTS2E6RSQZ8/h/k69RHaonalSKYIzCNt+0O4OmBgoyAxn8hmazbVcgV2c8PoM8O
JyCK+hg/aoyKnAaykCfNQ4/cYngP3ezoTVr7q7zJtQcCJrB1ci9x6Du9CXQTb+gH
HfL/zL8BYc4nBJ9Jq7vz8zi/EJbADGSSy1pAvv8ksUJ6TKRtC9Xx8s5sPdj+GuR7
hJEGHQfA/MqQTZJE5oVHu3nhNa66F+ddKJydcC5tCKJEoSNJ5tE836+f5QALEoc=
=eG42
-----END PGP SIGNATURE-----

Andrew Stewart

unread,
Mar 21, 2012, 5:31:40 AM3/21/12
to vim...@googlegroups.com

On 21 Mar 2012, at 10:29, Phil Dobbin wrote:
> On 21/03/2012 08:48, Andrew Stewart wrote:
>> On 20 Mar 2012, at 18:21, Darcy wrote:
>>> vim='mvim -v'
>>
>> How does the -v flag work? I can't find it documented in "Starting MacVim" and it's not used in the `mvim` script.
>
> It aliases console Vim to GUI vim rather than creating a symlink a la
> `sudo ln -s $(which gvim) $(which vim)` which is the way personally I'd
> do it.

Thanks for the reply. However I understand what the alias does, just not how it works. Where is the `-v` flag handled?

Cheers,

Phil Dobbin

unread,
Mar 21, 2012, 5:51:42 AM3/21/12
to vim...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


See :help -v

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/

iQEcBAEBAgAGBQJPaaSqAAoJEKpMeDHWT5ADtXsH/iaqPrePuf9kC3duDS1FkUXX
fnKCcXhRU6riGEeGxWmZVcgN4VKc8Za9wbwmwf6K0ZL6gGvu9fyqi19iJwdrl8lv
EUJJpg2JR0GxhAlpj63Il4fHxgwHNpp3PLioPBVvbZParSpo6Uvlda0D42+5Dm/a
EguQRMRcml6qCzg26t5lXDPFni7gxYLxFJj8bQdPiD+4wQXOnAOe43XxemqZ5Ccf
3pZi/AgKb007gGjmMbkWMiPYGx/LRs/tfRGsOiF0ejebUvAmzJFfAlWcBE5ZpkNC
BwbDDyv8ZoFH34YnJ7OJsZud4MnrgpRHPHI9nZv2oEVwOrqPtop7RLrShkz7JIA=
=h/Wh
-----END PGP SIGNATURE-----

Andrew Stewart

unread,
Mar 21, 2012, 6:03:09 AM3/21/12
to vim...@googlegroups.com

On 21 Mar 2012, at 10:51, Phil Dobbin wrote:
> See :help -v

Oh, right. Thanks!

Cheers,
Andy Stewart

Darcy

unread,
Mar 22, 2012, 9:53:14 AM3/22/12
to vim_mac
Just to clarify `sudo ln -s $(which gvim) $(which vim)` is different.
It does not include the -v option. This just creates a link of gvim
to vim.

vim='mvim -v'
alias vim="${vim}"

The -v option for mvim is to open vim inside a terminal rather than
opening the usual gui version of macvim. (try it) I like this because
the vim that comes with OS X is not compiled with as many options as
mvim. And I like to run vim in a terminal...

I learned about it here:
http://stackoverflow.com/questions/2056137/how-to-run-mvim-macvim-from-terminal

Creating the vim environment variable is useful because notice I use
it for more than just the `alias vim="${vim}". I also use it for
$EDITOR...

Darcy

Phil Dobbin

unread,
Mar 22, 2012, 10:04:19 AM3/22/12
to vim...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/03/2012 13:53, Darcy wrote:
> Just to clarify `sudo ln -s $(which gvim) $(which vim)` is different.
> It does not include the -v option. This just creates a link of gvim
> to vim.
>
> vim='mvim -v'
> alias vim="${vim}"
>
> The -v option for mvim is to open vim inside a terminal rather than
> opening the usual gui version of macvim. (try it) I like this because
> the vim that comes with OS X is not compiled with as many options as
> mvim. And I like to run vim in a terminal...
>
> I learned about it here:
> http://stackoverflow.com/questions/2056137/how-to-run-mvim-macvim-from-terminal
>
> Creating the vim environment variable is useful because notice I use
> it for more than just the `alias vim="${vim}". I also use it for
> $EDITOR...

In which case you could pull the Vim sources from Mercurial & build a
console Vim to fit your requirements (the default build installs into
/usr/local/).

Or alternatively, use MacPorts for a console version (I currently use a
console version of Vim from MacPorts & a MacVim I compiled from Bjorn's
sources on OS X).

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/

iQEcBAEBAgAGBQJPazFgAAoJEKpMeDHWT5ADxY8H/2GjMhRJHutrv3fkgV6Gm6Jq
CA4R7dTLnd6dhHlMPbEp7SJN1VpgB0oUMsyBnIGVleH0D+VVDpJ6SUsZ5+NOymqV
LEWRN6iY2khe9btydMFRBZUR8LshME9o+qz9TH+g2RCrjvv0C/3k4L1I5kiOQcBZ
VoKe7kaOgPZl/VglT22c9q6Vaj39D0o2lWoTcxqCIW+cCpUHTrMKOz9KHSPAJFMC
20epTepKshUEC4dlP04HXWPvaz8TW6ODLqHeYyetq8Ub+SAxaM+uxSosieFMNBZF
B/qFkmbEwz9BX3fAuq/S/E3owDsCSyTELmX+dBEK7juADmpGz+T5AxMJsmqzH2o=
=5AvF
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages