blob: fd215834f31910fc8cf16591078781fa9ccd7ada [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001*os_amiga.txt* For Vim version 7.0aa. Last change: 2004 Apr 25
2
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.
16- With DOS 1.3 or earlier: Put "arp.library" in "libs:". Vim must have been
17 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
24csh 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
26version 0.5.
27
28If you do not use digraphs, you can save some memory by recompiling without
29the |+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.
31See the makefiles and feature.h.
32
33If you want to use different colors set the termcap codes:
34 t_mr (for inverted text)
35 t_md (for bold text)
36 t_me (for normal text after t_mr and t_md)
37 t_so (for standout mode)
38 t_se (for normal text after t_so)
39 t_us (for underlined text)
40 t_ue (for normal text after t_us)
41 t_ZH (for italic text)
42 t_ZR (for normal text after t_ZH)
43
44Standard ANSI escape sequences are used. The codes are:
4530 grey char 40 grey cell >0 grey background 0 all attributes off
4631 black char 41 black cell >1 black background 1 boldface
4732 white char 42 white cell >2 white background 2 faint
4833 blue char 43 blue cell >3 blue background 3 italic
4934 grey char 44 grey cell >4 grey background 4 underscore
5035 black char 45 black cell >5 black background 7 reverse video
5136 white char 46 white cell >6 white background 8 invisible
5237 blue char 47 blue cell >7 blue background
53
54The codes with '>' must be the last. The cell and background color should be
55the same. The codes can be combined by separating them with a semicolon. For
56example to get white text on a blue background: >
57 :set t_me=^V<Esc>[0;32;43;>3m
58 :set t_se=^V<Esc>[0;32;43;>3m
59 :set t_ue=^V<Esc>[0;32;43;>3m
60 :set t_ZR=^V<Esc>[0;32;43;>3m
61 :set t_md=^V<Esc>[1;32;43;>3m
62 :set t_mr=^V<Esc>[7;32;43;>3m
63 :set t_so=^V<Esc>[0;31;43;>3m
64 :set t_us=^V<Esc>[4;32;43;>3m
65 :set t_ZH=^V<Esc>[3;32;43;>3m
66
67When using multiple commands with a filter command, e.g. >
68 :r! echo this; echo that
69Only the output of the last command is used. To fix this you have to group the
70commands. This depends on the shell you use (that is why it is not done
71automatically in Vim). Examples: >
72 :r! (echo this; echo that)
73 :r! {echo this; echo that}
74
75Commands that accept a single file name allow for embedded spaces in the file
76name. However, when using commands that accept several file names, embedded
77spaces need to be escaped with a backslash.
78
79------------------------------------------------------------------------------
80Vim for MorphOS *MorphOS*
81
82[this section mostly by Ali Akcaagac]
83
84For the latest info about the MorphOS version:
85 http://www.akcaagac.com/index_vim.html
86
87
88Problems ~
89
90There are a couple of problems which are not MorphOS related but more Vim and
91UN*X related. When starting up Vim in ram: it complains with a nag requester
92from MorphOS please simply ignore it. Another problem is when running Vim as
93is some plugins will cause a few problems which you can ignore as well.
94Hopefully someone will be fixing it over the time.
95
96To pass all these problems for now you can either run:
97
98 vim <file to be edited>
99
100or if you want to run Vim plain and enjoy the motion of Helpfiles etc. it then
101would be better to enter:
102
103 vim --noplugins <of course you can add a file>
104
105
106Installation ~
107
1081) Please copy the binary 'VIM' file to c:
1092) Get the Vim runtime package from:
110
111 ftp://ftp.vim.org/pub/vim/amiga/vim62rt.tgz
112
113 and unpack it in your 'Apps' directory of the MorphOS installation. For me
114 this would create following directory hierarchy:
115
116 MorphOS:Apps/Vim/Vim62/...
117
1183) Add the following lines to your s:shell-startup (Important!).
119
120 ;Begin VIM
121 Set VIM=MorphOS:Apps/Vim/Vim62
122 Assign HOME: ""
123 ;End VIM
124
1254) Copy the '.vimrc' file to s:
126
1275) There is also a file named 'color-sequence' included in this archive. This
128 will set the MorphOS Shell to show ANSI colors. Please copy the file to s:
129 and change the s:shell-startup to:
130
131 ;Begin VIM
132 Set VIM=MorphOS:Apps/Vim/Vim62
133 Assign HOME: ""
134 Execute S:Color-Sequence
135 Cls
136 ;End VIM
137
138
139 vim:tw=78:ts=8:ft=help:norl: