39
|
1 *os_mac.txt* For Vim version 7.0aa. Last change: 2004 Dec 13
|
7
|
2
|
|
3
|
|
4 VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
|
5
|
|
6
|
|
7 *mac* *Mac* *macintosh* *Macintosh*
|
|
8
|
|
9 This file documents the particularities of the Macintosh version of Vim.
|
|
10
|
|
11 NOTE: This file is a bit outdated. You might find more useful info here:
|
19
|
12 http://macvim.org/
|
7
|
13
|
|
14 1. Filename Convention |mac-filename|
|
|
15 2. .vimrc an .vim files |mac-vimfile|
|
|
16 3. FAQ |mac-faq|
|
|
17 4. Known Lack |mac-lack|
|
|
18 5. Mac Bug Report |mac-bug|
|
|
19 6. Compiling Vim |mac-compile|
|
|
20
|
|
21 There was a Mac port for version 3.0 of Vim. Here are the first few lines
|
|
22 from the old file:
|
|
23
|
|
24 VIM Release Notes
|
|
25 Initial Macintosh release, VIM version 3.0
|
|
26 19 October 1994
|
|
27
|
|
28 Eric Fischer
|
|
29 <enf1@midway.uchicago.edu>, <eric@jcp.uchicago.edu>, <etaoin@uchicago.edu>
|
|
30 5759 N. Guilford Ave
|
|
31 Indianapolis IN 46220 USA
|
|
32
|
|
33 ==============================================================================
|
|
34 1. Filename Convention *mac-filename*
|
|
35
|
|
36 You can use either the unix or mac path separator or a mix of both. In order
|
|
37 to determine if the specified filename is relative to the current folder or
|
|
38 absolute (i.e. relative to the "Desktop"), the following algorithm is used:
|
|
39
|
|
40 If the path start by a "/", the path is absolute
|
|
41 If the path start by a ":", the path is relative
|
|
42 If the path doesn't start by neither a "/" nor ":",
|
|
43 and a ":" is found before a "/" then the path is absolute
|
|
44 >
|
|
45 :e /HD/text
|
|
46 :e HD:text
|
|
47 < Edit the file "text" of the disk "HD" >
|
|
48 :e :src:main.c
|
|
49 :e src/main.c
|
|
50 < Edit the file "main.c" in the folder "src" in the current folder >
|
|
51 :e os_mac.c
|
|
52 < Edit the file "os_mac.c" in the current folder.
|
|
53
|
|
54 You can use the |$VIM| and |$VIMRUNTIME| variable. >
|
|
55
|
|
56 :so $VIMRUNTIME:syntax:syntax.vim
|
|
57
|
|
58 ==============================================================================
|
|
59 2. .vimrc and .vim files *mac-vimfile*
|
|
60
|
|
61 On the Mac files starting with a dot "." are discouraged, thus the rc files
|
|
62 are named "vimrc" or "_vimrc" and "gvimrc" or "_gvimrc". These files can be in
|
|
63 any format (mac, dos or unix). Vim can handle any file format when the
|
|
64 |'nocompatible'| option is set, otherwise it will only handle mac format
|
|
65 files.
|
|
66
|
|
67 ==============================================================================
|
|
68 3. Mac FAQ *mac-faq*
|
|
69
|
|
70 Q: I can't enter non-ASCII character in Apple Terminal.
|
|
71 A: Under Window Settings, Emulation, make sure that "Escape non-ASCII
|
|
72 characters" is not checked.
|
|
73
|
39
|
74 Q: How do I start the GUI from the command line?
|
|
75 A: Assuming that Vim.app is located in /Applications:
|
|
76 open /Applications/Vim.app
|
|
77 Or:
|
|
78 /Applications/Vim.app/Contents/MacOS/Vim -g {arguments}
|
|
79
|
7
|
80 ==============================================================================
|
|
81 4. Mac Lack *mac-lack*
|
|
82
|
9
|
83 The filenames containing both ":" and "/" are sometimes misinterpreted. (just
|
|
84 re-execute the command)
|
|
85
|
|
86 Scrollbar are not scrolling live, and when only the arrow or scroll area, a
|
|
87 limit of 32 line or page is scrolled.
|
|
88
|
|
89 Syntax highlighting works on 68k Macs but is _really_ slow.
|
|
90
|
|
91 In a terminal CTRL-^ needs to be entered as Shift-Control-6. CTRL-@ as
|
|
92 Shift-Control-2.
|
7
|
93
|
|
94 ==============================================================================
|
|
95 5. Mac Bug Report *mac-bug*
|
|
96
|
|
97 When reporting any Mac specific bug or feature change, please use the vim-mac
|
|
98 maillist |vim-mac|. However, you need to be subscribed. An alternative is to
|
|
99 send a message to the current MacVim maintainers:
|
|
100
|
|
101 mac@vim.org
|
|
102
|
|
103 ==============================================================================
|
|
104 6. Compiling Vim *mac-compile*
|
|
105
|
|
106 See the file "src/INSTALLmac.txt" that comes with the source files.
|
|
107
|
|
108
|
|
109 vim:tw=78:ts=8:ft=help:norl:
|