New MacMini

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
MacMini:~ mediaserver$ mkdir .vim
MacMini:~ mediaserver$ git clone git@github.com:radegast/dotvim.git .vim
Cloning into '.vim'...
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
remote: Counting objects: 367, done.
remote: Compressing objects: 100% (309/309), done.
remote: Total 367 (delta 58), reused 335 (delta 26)
Receiving objects: 100% (367/367), 512.73 KiB, done.
Resolving deltas: 100% (58/58), done.
 
 
MacMini:~ mediaserver$ cd .vim
MacMini:.vim mediaserver$ pwd
/Users/mediaserver/.vim
 
 
MacMini:.vim mediaserver$ ln -s ~/.vim/_vimrc ~/.vim
.vim/     .viminfo 
 
 
MacMini:.vim mediaserver$ ln -s ~/.vim/_vimrc ~/.vimrc
MacMini:.vim mediaserver$ ln -s ~/.vim/_gvimrc ~/.gvimrc
 
 
MacMini:.vim mediaserver$ pwd
/Users/mediaserver/.vim
MacMini:.vim mediaserver$ git submodule init
Submodule 'bundle/tlib_vim' (git://github.com/tomtom/tlib_vim.git) registered for path 'bundle/tlib_vim'
Submodule 'bundle/vim-fugitive' (git://github.com/tpope/vim-fugitive.git) registered for path 'bundle/vim-fugitive'
Submodule 'bundle/vim-pathogen' (git://github.com/tpope/vim-pathogen.git) registered for path 'bundle/vim-pathogen'
Submodule 'bundle/vim-unimpaired' (git://github.com/tpope/vim-unimpaired.git) registered for path 'bundle/vim-unimpaired'
MacMini:.vim mediaserver$ git submodule update
Cloning into 'bundle/tlib_vim'...
remote: Counting objects: 992, done.
remote: Compressing objects: 100% (372/372), done.
remote: Total 992 (delta 594), reused 946 (delta 549)
Receiving objects: 100% (992/992), 210.90 KiB, done.
Resolving deltas: 100% (594/594), done.
Submodule path 'bundle/tlib_vim': checked out 'd66948917ce7153e4a961aa5d57e1b0918e20495'
Cloning into 'bundle/vim-fugitive'...
remote: Counting objects: 1481, done.
remote: Compressing objects: 100% (525/525), done.
remote: Total 1481 (delta 637), reused 1405 (delta 579)
Receiving objects: 100% (1481/1481), 190.02 KiB, done.
Resolving deltas: 100% (637/637), done.
Submodule path 'bundle/vim-fugitive': checked out '1b7e4070f5f7b7522422f5b00a75b323cc314daf'
Cloning into 'bundle/vim-pathogen'...
remote: Counting objects: 395, done.
remote: Compressing objects: 100% (215/215), done.
remote: Total 395 (delta 108), reused 372 (delta 90)
Receiving objects: 100% (395/395), 47.73 KiB, done.
Resolving deltas: 100% (108/108), done.
Submodule path 'bundle/vim-pathogen': checked out 'ab64b4ddd0c184a528780b498a0b0a5b40248f7c'
Cloning into 'bundle/vim-unimpaired'...
remote: Counting objects: 260, done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 260 (delta 84), reused 250 (delta 76)
Receiving objects: 100% (260/260), 33.89 KiB, done.
Resolving deltas: 100% (84/84), done.
Submodule path 'bundle/vim-unimpaired': checked out '440629adb4051e5f9920704570d1ff0e88356dc2'

Adding terminal shortcut ‘mvim’

It is packed in the tbz file. Move it to /usr/bin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
MacMini:.vim mediaserver$ cat ~/Downloads/MacVim-snapshot-66/mvim
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle.  If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic.  This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
# First, check "All the Usual Suspects" for the location of the Vim.app bundle.
# You can short-circuit this by setting the VIM_APP_DIR environment variable
# or by un-commenting and editing the following line:
# VIM_APP_DIR=/Applications
if [ -z "$VIM_APP_DIR" ]
then
    myDir="`dirname "$0"`"
    myAppDir="$myDir/../Applications"
    for i in ~/Applications ~/Applications/vim $myDir $myDir/vim $myAppDir $myAppDir/vim /Applications /Applications/vim /Applications/Utilities /Applications/Utilities/vim; do
        if [ -x "$i/MacVim.app" ]; then
            VIM_APP_DIR="$i"
            break
        fi
    done
fi
if [ -z "$VIM_APP_DIR" ]
then
    echo "Sorry, cannot find MacVim.app.  Try setting the VIM_APP_DIR environment variable to the directory containing MacVim.app."
    exit 1
fi
binary="$VIM_APP_DIR/MacVim.app/Contents/MacOS/Vim"
# Next, peek at the name used to invoke this script, and set options
# accordingly.
name="`basename "$0"`"
gui=
opts=
# GUI mode, implies forking
case "$name" in m*|g*|rm*|rg*) gui=true ;; esac
# Restricted mode
case "$name" in r*) opts="$opts -Z";; esac
# vimdiff, view, and ex mode
case "$name" in
    *vimdiff)
        opts="$opts -dO"
        ;;
    *view)
        opts="$opts -R"
        ;;
    *ex)
        opts="$opts -e"
        ;;
esac
# Last step:  fire up vim.
# The program should fork by default when started in GUI mode, but it does
# not; we work around this when this script is invoked as "gvim" or "rgview"
# etc., but not when it is invoked as "vim -g".
if [ "$gui" ]; then
    # Note: this isn't perfect, because any error output goes to the
    # terminal instead of the console log.
    # But if you use open instead, you will need to fully qualify the
    # path names for any filenames you specify, which is hard.
    exec "$binary" -g $opts ${1:+"$@"}
else
    exec "$binary" $opts ${1:+"$@"}
fi
 
 
MacMini:.vim mediaserver$ sudo mv ~/Downloads/MacVim-snapshot-66/mvim /usr/bin/
Password:
 
 
MacMini:.vim mediaserver$ mvim aaa
MacMini:.vim mediaserver$