Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | *os_mac.txt* For Vim version 7.0aa. Last change: 2004 Apr 27 |
| 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: |
| 12 | http://macvim.swdev.org/ |
| 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 | |
| 74 | ============================================================================== |
| 75 | 4. Mac Lack *mac-lack* |
| 76 | |
| 77 | -The filenames containing both ":" and "/" are sometimes misinterpreted. |
| 78 | (just re-execute the command) |
| 79 | -Scrollbar are not scrolling live, and when only the arrow or scroll area, |
| 80 | a limit of 32 line or page is scrolled. |
| 81 | -Syntax highlighting works on 68k Macs but is _really_ slow. |
| 82 | |
| 83 | ============================================================================== |
| 84 | 5. Mac Bug Report *mac-bug* |
| 85 | |
| 86 | When reporting any Mac specific bug or feature change, please use the vim-mac |
| 87 | maillist |vim-mac|. However, you need to be subscribed. An alternative is to |
| 88 | send a message to the current MacVim maintainers: |
| 89 | |
| 90 | mac@vim.org |
| 91 | |
| 92 | ============================================================================== |
| 93 | 6. Compiling Vim *mac-compile* |
| 94 | |
| 95 | See the file "src/INSTALLmac.txt" that comes with the source files. |
| 96 | |
| 97 | |
| 98 | vim:tw=78:ts=8:ft=help:norl: |