blob: de395e3a6f3f39436ff9ece0028f62b901d98176 [file] [log] [blame]
Bram Moolenaar4421d6a2010-08-14 13:33:56 +02001*os_amiga.txt* For Vim version 7.3g. Last change: 2005 Mar 29
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Bram Moolenaar
5
6
7 *Amiga*
8This file contains the particularities for the Amiga version of Vim.
9There is also a section specifically for |MorphOS| below.
10
11Installation on the Amiga:
12- Assign "VIM:" to the directory where the Vim "doc" directory is. Vim will
13 look for the file "VIM:doc/help.txt" (for the help command).
14 Setting the environment variable $VIM also works. And the other way around:
15 when $VIM used and it is not defined, "VIM:" is used.
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000016- With DOS 1.3 or earlier: Put "arp.library" in "libs:". Vim must have been
Bram Moolenaar071d4272004-06-13 20:20:40 +000017 compiled with the |+ARP| feature enabled. Make sure that newcli and run are
18 in "C:" (for executing external commands).
19- Put a shell that accepts a command with "-c" (e.g. "Csh" from Fish disk
20 624) in "c:" or in any other directory that is in your search path (for
21 executing external commands).
22
23If you have sufficient memory you can avoid startup delays by making Vim and
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000024csh resident with the command "rez csh vim". You will have to put
25"rezlib.library" in your "libs:" directory. Under 2.0 you will need rez
Bram Moolenaar071d4272004-06-13 20:20:40 +000026version 0.5.
27
28If you do not use digraphs, you can save some memory by recompiling without
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000029the |+digraphs| feature. If you want to use Vim with other terminals you can
30recompile with the TERMCAP option. Vim compiles with Manx 5.x and SAS 6.x.
Bram Moolenaar071d4272004-06-13 20:20:40 +000031See the makefiles and feature.h.
32
Bram Moolenaar843ee412004-06-30 16:16:41 +000033If you notice Vim crashes on some files when syntax highlighting is on, or
34when using a search pattern with nested wildcards, it might be that the stack
35is too small. Try increasing the stack size. In a shell use the Stack
36command before launching Vim. On the Workbench, select the Vim icon, use the
37workbench "Info" menu and change the Stack field in the form.
38
Bram Moolenaar071d4272004-06-13 20:20:40 +000039If you want to use different colors set the termcap codes:
40 t_mr (for inverted text)
41 t_md (for bold text)
42 t_me (for normal text after t_mr and t_md)
43 t_so (for standout mode)
44 t_se (for normal text after t_so)
45 t_us (for underlined text)
46 t_ue (for normal text after t_us)
47 t_ZH (for italic text)
48 t_ZR (for normal text after t_ZH)
49
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000050Standard ANSI escape sequences are used. The codes are:
Bram Moolenaar071d4272004-06-13 20:20:40 +00005130 grey char 40 grey cell >0 grey background 0 all attributes off
5231 black char 41 black cell >1 black background 1 boldface
5332 white char 42 white cell >2 white background 2 faint
5433 blue char 43 blue cell >3 blue background 3 italic
5534 grey char 44 grey cell >4 grey background 4 underscore
5635 black char 45 black cell >5 black background 7 reverse video
5736 white char 46 white cell >6 white background 8 invisible
5837 blue char 47 blue cell >7 blue background
59
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000060The codes with '>' must be the last. The cell and background color should be
61the same. The codes can be combined by separating them with a semicolon. For
Bram Moolenaar071d4272004-06-13 20:20:40 +000062example to get white text on a blue background: >
63 :set t_me=^V<Esc>[0;32;43;>3m
64 :set t_se=^V<Esc>[0;32;43;>3m
65 :set t_ue=^V<Esc>[0;32;43;>3m
66 :set t_ZR=^V<Esc>[0;32;43;>3m
67 :set t_md=^V<Esc>[1;32;43;>3m
68 :set t_mr=^V<Esc>[7;32;43;>3m
69 :set t_so=^V<Esc>[0;31;43;>3m
70 :set t_us=^V<Esc>[4;32;43;>3m
71 :set t_ZH=^V<Esc>[3;32;43;>3m
72
73When using multiple commands with a filter command, e.g. >
74 :r! echo this; echo that
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000075Only the output of the last command is used. To fix this you have to group the
76commands. This depends on the shell you use (that is why it is not done
77automatically in Vim). Examples: >
Bram Moolenaar071d4272004-06-13 20:20:40 +000078 :r! (echo this; echo that)
79 :r! {echo this; echo that}
80
81Commands that accept a single file name allow for embedded spaces in the file
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000082name. However, when using commands that accept several file names, embedded
Bram Moolenaar071d4272004-06-13 20:20:40 +000083spaces need to be escaped with a backslash.
84
85------------------------------------------------------------------------------
86Vim for MorphOS *MorphOS*
87
88[this section mostly by Ali Akcaagac]
89
90For the latest info about the MorphOS version:
91 http://www.akcaagac.com/index_vim.html
92
93
94Problems ~
95
96There are a couple of problems which are not MorphOS related but more Vim and
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +000097UN*X related. When starting up Vim in ram: it complains with a nag requester
98from MorphOS please simply ignore it. Another problem is when running Vim as
Bram Moolenaar071d4272004-06-13 20:20:40 +000099is some plugins will cause a few problems which you can ignore as well.
100Hopefully someone will be fixing it over the time.
101
102To pass all these problems for now you can either run:
103
104 vim <file to be edited>
105
106or if you want to run Vim plain and enjoy the motion of Helpfiles etc. it then
107would be better to enter:
108
109 vim --noplugins <of course you can add a file>
110
111
112Installation ~
113
1141) Please copy the binary 'VIM' file to c:
1152) Get the Vim runtime package from:
116
117 ftp://ftp.vim.org/pub/vim/amiga/vim62rt.tgz
118
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +0000119 and unpack it in your 'Apps' directory of the MorphOS installation. For me
Bram Moolenaar071d4272004-06-13 20:20:40 +0000120 this would create following directory hierarchy:
121
122 MorphOS:Apps/Vim/Vim62/...
123
1243) Add the following lines to your s:shell-startup (Important!).
125
126 ;Begin VIM
127 Set VIM=MorphOS:Apps/Vim/Vim62
128 Assign HOME: ""
129 ;End VIM
130
1314) Copy the '.vimrc' file to s:
132
Bram Moolenaar13fcaaf2005-04-15 21:13:42 +00001335) There is also a file named 'color-sequence' included in this archive. This
134 will set the MorphOS Shell to show ANSI colors. Please copy the file to s:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000135 and change the s:shell-startup to:
136
137 ;Begin VIM
138 Set VIM=MorphOS:Apps/Vim/Vim62
139 Assign HOME: ""
140 Execute S:Color-Sequence
141 Cls
142 ;End VIM
143
144
145 vim:tw=78:ts=8:ft=help:norl: