annotate runtime/doc/os_os2.txt @ 6657:41d50eba0c0f v7.4.653

updated for version 7.4.653 Problem: Insert mode completion with complete() may have CTRL-L work like CTRL-P. Solution: Handle completion with complete() differently. (Yasuhiro Matsumoto, Christian Brabandt, Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Thu, 05 Mar 2015 18:08:43 +0100
parents 359743c1f59a
children 1886f2863437
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5294
359743c1f59a release version 7.4
Bram Moolenaar <bram@vim.org>
parents: 5247
diff changeset
1 *os_os2.txt* For Vim version 7.4. Last change: 2007 Apr 22
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Paul Slootman
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 *os2* *OS2* *OS/2*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 This file contains the particularities for the OS/2 version of Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 At present there is no native PM version of the GUI version of Vim: The OS/2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 version is a console application. However, there is now a Win32s-compatible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 GUI version, which should be usable by owners of Warp 4 (which supports
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 Win32s) in a Win-OS/2 session. The notes in this file refer to the native
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 console version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 This OS/2 port works well for me and a couple of other OS/2 users; however,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 since I haven't had much feedback, that either means no (OS/2-specific) bugs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 exist (besides the ones mentioned below), or no one has yet created a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 situation in which any bugs are apparent. File I/O in Dos and Unix mode,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 binary mode, and FAT handling all seem to work well, which would seem to be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 the most likely places for trouble.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 A known problem is that files opened by Vim are inherited by other programs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 that are started via a shell escape from within Vim. This specifically means
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 that Vim won't be able to remove the swap file(s) associated with buffers open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 at the time the other program was started, until the other program is stopped.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 At that time, the swap file may be removed, but if Vim could not do that the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
31 first time, it won't be removed at all. You'll get warnings that some other
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 Vim session may be editing the file when you start Vim up again on that file.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
33 This can be reproduced with ":!start epm". Now quit Vim, and start Vim again
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 with the file that was in the buffer at the time epm was started. I'm working
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 on this!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 A second problem is that Vim doesn't understand the situation when using it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 when accessing the OS/2 system via the network, e.g. using telnet from a Unix
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
39 system, and then starting Vim. The problem seems to be that OS/2 =sometimes=
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 recognizes function / cursor keys, and tries to convert those to the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
41 corresponding OS/2 codes generated by the "normal" PC keyboard. I've been
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 testing a workaround (mapping the OS/2 codes to the correct functions), but so
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
43 far I can't say anything conclusive (this is on Warp 3, by the way). In the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 meantime any help will be appreciated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 PREREQUISITES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 To run Vim, you need the emx runtime environment (at least rev. 0.9b). This
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 is generally available as (ask Archie about it):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 emxrt.zip emx runtime package
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 I've included a copy of emx.dll, which should be copied to one of the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
55 directories listed in your LIBPATH. Emx is GPL'ed, but the emx.dll library is
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 not (read COPYING.EMX to find out what that means to you).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 This emx.dll is from the emxfix04.zip package, which unfortunately has a bug,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 eh, I mean a POSIX feature, in select(). Versions of Vim before 3.27 will
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
60 appear to hang when starting (actually, while processing vimrc). Hit <Enter> a
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 couple of times until Vim starts working if this happens. Next, get an up to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 date version of Vim!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HELP AND VIMRC FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 If you unpack the archive that Vim came in and run Vim directly from where it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 was unpacked, Vim should be able to find the runtime files and your .vimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 without any settings.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 If you put the runtime files separately from the binary, the VIM environment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 variable is used to find the location of the help files and the system .vimrc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 Place an entry such as this in CONFIG.SYS: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 SET VIM=c:/local/lib/vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 Put your .vimrc and your other Vim files in this directory. Copy the runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 directory to this directory. Each version of Vim has its own runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 directory. It will be called something like "c:/local/lib/vim/vim54". Thus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 you get a tree of Vim files like this:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 c:/local/lib/vim/.vimrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 c:/local/lib/vim/vim54/filetype.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 c:/local/lib/vim/vim54/doc/help.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 Note: .vimrc may also be called _vimrc to accommodate those who have chosen to
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
87 install OS/2 on a FAT file system. Vim first tries to find .vimrc and if that
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 fails, looks for _vimrc in the same place. The existence of a .vimrc or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 _vimrc file influences the 'compatible' options, which can have unexpected side
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 effects. See |'compatible'|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 If you're using network drives with OS/2, then you can install Vim on a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 network drive (including .vimrc; this is then called the "system" vimrc file),
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
94 and then use a personal copy of .vimrc (the "user" vimrc file). This should be
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 located in a directory indicated by the HOME environment variable.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 ENVIRONMENT VARIABLES IN FILE NAMES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 This HOME environment variable is also used when using ~ in file names, so
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 ":e ~/textfile" will edit the file "textfile" in the directory referred to by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 HOME. Additionally you can use other environment variables in file names, as
1119
dd9842fb18dd updated for version 7.1a
vimboss
parents: 874
diff changeset
103 in ":n $SRC/*.c".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 The HOME environment variable is also used to locate the .viminfo file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 (see |viminfo-file|). There is no support yet for .viminfo on FAT file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 systems yet, sorry. You could try the -i startup flag (as in "vim -i
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 $HOME/_viminfo") however.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 If the HOME environment variable is not set, the value "C:/" is used as a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 default.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 BACKSLASHES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 Using slashes ('/') and backslashes ('\') can be a bit of a problem (see
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 |dos-backslash| for more explanation), but in almost all cases Vim does "The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 Right Thing". Vim itself uses backslashes in file names, but will happily
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 accept forward slashes if they are entered (in fact, sometimes that works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 better!).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 TEMP FILES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 Temporary files (for filtering) are put in the first directory in the next
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 list that exists and where a file can be created:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 $TMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 $TEMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 C:\TMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 C:\TEMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 current directory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 TERMINAL SETTING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 *os2ansi*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 Use "os2ansi" as the TERM environment variable (or don't set it at all, as the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
138 default is the correct value). You can set term to os2ansi in the .vimrc, in
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 case you need TERM to be a different value for other applications. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 problem is that OS/2 ANSI emulation is quite limited (it doesn't have insert /
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 delete line, for example).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 If you want to use a different value for TERM (because of other programs, for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 example), make sure that the termcap entry for that TERM value has the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
145 appropriate key mappings. The termcap.dat distributed with emx does not always
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 have them. Here are some suitable values to add to the termcap entry of your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 choice; these allow the cursor keys and the named function keys (such as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 pagedown) to work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 :ku=\316H:kd=\316P:kl=\316K:kr=\316M:%i=\316t:#4=\316s:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 :kD=\316S:kI=\316R:kN=\316Q:kP=\316I:kh=\316G:@7=\316O:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 :k1=\316;:k2=\316<:k3=\316=:k4=\316>:k5=\316?:k6=\316@:\
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 :k7=\316A:k8=\316B:k9=\316C:k;=\316D:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 Paul Slootman
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 43 LINE WINDOW
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 A suggestion from Steven Tryon, on how to run Vim in a bigger window:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 When I call Vim from an OS/2 WPS application such as PMMail it comes up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 in the default 25-line mode. To get a more useful window size I make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 my external editor "vimbig.cmd" which in turn calls "vimbig2.cmd".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 Brute force and awkwardness, perhaps, but it works.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 vimbig.cmd: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 @echo off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 start "Vi Improved" /f vimbig2.cmd %1 %2 %3 %4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 vimbig2.cmd: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 @echo off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 mode 80,43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 vim.exe %1 %2 %3 %4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 CLIPBOARD ACCESS (provided by Alexander Wagner)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 Vim for OS/2 has no direct access to the system clipboard. To enable access
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 anyway you need an additional tool which gives you access to the clipboard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 from within a vio application. The freeware package clipbrd.zip by Stefan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 Gruendel can be used for this purpose. You might download the package
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 including precompiled binaries and all sources from:
2236
dc2e5ec0500d Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2207
diff changeset
186 http://www.os2site.com/sw/util/clipboard/index.html
dc2e5ec0500d Added the undofile() function. Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2207
diff changeset
187 http://download.uni-hd.de/ftp/pub/os2/pmtools/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 Installation of this package is straight forward: just put the two executables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 that come with this package into a directory within your PATH for Vim should
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 be able to call them from whatever directory you are working.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 To copy text from the clipboard to your Vim session you can use the :r
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 command. Simply call clipbrd.exe from within Vim in the following way: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 :r !clipbrd -r
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 To copy text from Vim to the system clipboard just mark the text in the usual
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 vim-manner and call: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 :!clipbrd -w
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 which will write your selection right into OS/2's clipboard.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
2207
b17bbfa96fa0 Add the settabvar() and gettabvar() functions.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
205 For ease of use you might want to add some maps for these commands. E.g. to
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 use F11 to paste the clipboard into Vim and F12 to copy selected text to the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 clipboard you would use: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 if has("os2")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 imap <F11> <ESC>:r !clipbrd -r<CR>i
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 vmap <F12> :!clipbrd -w<cr>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 imap <F11> <ESC>"*p<CR>i
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 vmap <F12> "*y
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 This will ensure that only on OS/2 clipbrd is called whereas on other
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
218 platforms vims build in mechanism is used. (To enable this functions on every
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 load of Vim place the above lines in your .vimrc.)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 vim:tw=78:ts=8:ft=help:norl: