summaryrefslogtreecommitdiff
path: root/usr.bin/vim/doc/vim_ami.txt
blob: 18650c9f48b0a6429124a365c0efca14988204e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
*vim_ami.txt*   For Vim version 4.5.  Last modification: 1996 Apr 19

This file contains the particularities for the Amiga version of Vim.

Installation on the Amiga:
- Assign "vim:" to the directory where the vim_help.txt file is (for the help
  command).
- With DOS 1.3 or earlier: Put "arp.library" in "libs:". Make sure that
  newcli and run are in "c:" (for executing external commands).
- Put a shell that accepts a command with "-c" (e.g. "Csh" from Fish disk
  624) in "c:" or in any other directory that is in your search path (for
  executing external commands).

If you have sufficient memory you can avoid startup delays by making Vim and
csh resident with the command "rez csh vim". You will have to put
"rezlib.library" in your "libs:" directory. Under 2.0 you will need rez
version 0.5.

If you do not use digraphs, you can save some memory by recompiling without
the DIGRAPHS option. If you want to use Vim with other terminals you can
recompile with the TERMCAP option. Vim compiles with Manx 5.x and SAS 6.x.
See the makefiles and feature.h.

If you want to use different colors set the termcap codes:
	t_mr (for inverted text)
	t_md (for bold text)
	t_me (for normal text after t_mr and t_md)
	t_so (for standout mode)
	t_se (for normal text after t_so)
	t_us (for underlined text)
	t_ue (for normal text after t_us)
	t_ZH (for italic text)
	t_ZR (for normal text after t_ZH)

Standard ANSI escape sequences are used. The codes are:
30 grey char   40 grey cell   >0 grey background    0 all attributes off
31 black char  41 black cell  >1 black background   1 boldface
32 white char  42 white cell  >2 white background   2 faint
33 blue char   43 blue cell   >3 blue background    3 italic
34 grey char   44 grey cell   >4 grey background    4 underscore
35 black char  45 black cell  >5 black background   7 reverse video
36 white char  46 white cell  >6 white background   8 invisible
37 blue char   47 blue cell   >7 blue background

The codes with '>' must be the last. The cell and background color should be
the same. The codes can be combined by separating them with a semicolon. For
example to get white text on a blue background:
	:set t_me=^V<Esc>[0;32;43;>3m
	:set t_se=^V<Esc>[0;32;43;>3m
	:set t_ue=^V<Esc>[0;32;43;>3m
	:set t_ZR=^V<Esc>[0;32;43;>3m
	:set t_md=^V<Esc>[1;32;43;>3m
	:set t_mr=^V<Esc>[7;32;43;>3m
	:set t_so=^V<Esc>[0;31;43;>3m
	:set t_us=^V<Esc>[4;32;43;>3m
	:set t_ZH=^V<Esc>[3;32;43;>3m

When using multiple commands with a filter command, e.g.
	:r! echo this; echo that
Only the output of the last command is used. To fix this you have to group the
commands. This depends on the shell you use (that is why it is not done
automatically in Vim). Examples:
	:r! (echo this; echo that)
	:r! {echo this; echo that}

Commands that accept a single file name allow for embedded spaces in the file
name. However, when using commands that accept several file names, embedded
spaces need to be escaped with a backslash.