annotate runtime/doc/os_mac.txt @ 4461:7058abc81075

Added tag v7-3-978 for changeset fe8a0a6a1c2a
author Bram Moolenaar <bram@vim.org>
date Mon, 20 May 2013 21:49:13 +0200
parents 073ff46fe397
children 6ec6b7ff2d43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2572
ee53a39d5896 Last changes for the 7.3 release!
Bram Moolenaar <bram@vim.org>
parents: 2561
diff changeset
1 *os_mac.txt* For Vim version 7.3. Last change: 2006 Apr 30
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar et al.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 *mac* *Mac* *macintosh* *Macintosh*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 This file documents the particularities of the Macintosh version of Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 NOTE: This file is a bit outdated. You might find more useful info here:
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 9
diff changeset
12 http://macvim.org/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 1. Filename Convention |mac-filename|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 2. .vimrc an .vim files |mac-vimfile|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 3. FAQ |mac-faq|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 4. Known Lack |mac-lack|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 5. Mac Bug Report |mac-bug|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 6. Compiling Vim |mac-compile|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 There was a Mac port for version 3.0 of Vim. Here are the first few lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 from the old file:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 VIM Release Notes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 Initial Macintosh release, VIM version 3.0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 19 October 1994
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 Eric Fischer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 <enf1@midway.uchicago.edu>, <eric@jcp.uchicago.edu>, <etaoin@uchicago.edu>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 5759 N. Guilford Ave
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 Indianapolis IN 46220 USA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 1. Filename Convention *mac-filename*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
36 Starting with Vim version 7 you can just use the unix path separators with
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
37 Vim. In order to determine if the specified filename is relative to the
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
38 current folder or absolute (i.e. relative to the "Desktop"), the following
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
39 algorithm is used:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 If the path start by a "/", the path is absolute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 If the path start by a ":", the path is relative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 If the path doesn't start by neither a "/" nor ":",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 and a ":" is found before a "/" then the path is absolute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :e /HD/text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :e HD:text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 < Edit the file "text" of the disk "HD" >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 :e :src:main.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :e src/main.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 < Edit the file "main.c" in the folder "src" in the current folder >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :e os_mac.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 < Edit the file "os_mac.c" in the current folder.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 You can use the |$VIM| and |$VIMRUNTIME| variable. >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 :so $VIMRUNTIME:syntax:syntax.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 2. .vimrc and .vim files *mac-vimfile*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
719
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
62 It is recommended to use Unix style line separators for Vim scripts, thus a
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
63 single newline character.
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
64
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
65 When starting up Vim will load the $VIMRUNTIME/macmap.vim script to define
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
66 default command-key mappings.
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
67
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
68 On older systems files starting with a dot "." are discouraged, thus the rc
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
69 files are named "vimrc" or "_vimrc" and "gvimrc" or "_gvimrc". These files
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
70 can be in any format (mac, dos or unix). Vim can handle any file format when
82ef0c58b012 updated for version 7.0219
vimboss
parents: 236
diff changeset
71 the |'nocompatible'| option is set, otherwise it will only handle mac format
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 3. Mac FAQ *mac-faq*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
810
9f345c48220b updated for version 7.0c
vimboss
parents: 799
diff changeset
77 On the internet: http://macvim.org/OSX/index.php#FAQ
9f345c48220b updated for version 7.0c
vimboss
parents: 799
diff changeset
78
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 Q: I can't enter non-ASCII character in Apple Terminal.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 A: Under Window Settings, Emulation, make sure that "Escape non-ASCII
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 characters" is not checked.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 19
diff changeset
83 Q: How do I start the GUI from the command line?
410fa1a31baf updated for version 7.0023
vimboss
parents: 19
diff changeset
84 A: Assuming that Vim.app is located in /Applications:
410fa1a31baf updated for version 7.0023
vimboss
parents: 19
diff changeset
85 open /Applications/Vim.app
410fa1a31baf updated for version 7.0023
vimboss
parents: 19
diff changeset
86 Or:
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
87 /Applications/Vim.app/Contents/MacOS/Vim -g {arguments}
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 19
diff changeset
88
818
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
89 Q: How can I set $PATH to something reasonable when I start Vim.app from the
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
90 GUI or with open?
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
91 A: The following trick works with most shells. Put it in your vimrc file.
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
92 This is included in the system vimrc file included with the binaries
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
93 distributed at macvim.org . >
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
94 let s:path = system("echo echo VIMPATH'${PATH}' | $SHELL -l")
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
95 let $PATH = matchstr(s:path, 'VIMPATH\zs.\{-}\ze\n')
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 810
diff changeset
96
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 4. Mac Lack *mac-lack*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
100 In a terminal CTRL-^ needs to be entered as Shift-Control-6. CTRL-@ as
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
101 Shift-Control-2.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 5. Mac Bug Report *mac-bug*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 When reporting any Mac specific bug or feature change, please use the vim-mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 maillist |vim-mac|. However, you need to be subscribed. An alternative is to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 send a message to the current MacVim maintainers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 mac@vim.org
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 6. Compiling Vim *mac-compile*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 See the file "src/INSTALLmac.txt" that comes with the source files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 vim:tw=78:ts=8:ft=help:norl: