236
|
1 *os_vms.txt* For Vim version 7.0aa. Last change: 2005 Apr 01
|
7
|
2
|
|
3
|
|
4 VIM REFERENCE MANUAL
|
|
5
|
|
6
|
|
7 *VMS* *vms*
|
|
8 This file contains the particularities for the VMS version of Vim.
|
|
9 You can reach this information file by typing :help VMS in Vim command
|
|
10 prompt.
|
|
11
|
|
12 1. Getting started |vms-started|
|
|
13 2. Download files |vms-download|
|
|
14 3. Compiling |vms-compiling|
|
|
15 4. Problems |vms-problems|
|
|
16 5. Deploy |vms-deploy|
|
|
17 6. Practical usage |vms-usage|
|
|
18 7. GUI mode questions |vms-gui|
|
|
19 8. Useful notes |vms-notes|
|
|
20 9. VMS related changes |vms-changes|
|
|
21 10. Authors |vms-authors|
|
|
22
|
|
23 ==============================================================================
|
|
24
|
|
25 1. Getting started *vms-started*
|
|
26
|
|
27 Vim (Vi IMproved) is a vi-compatible text editor that runs on nearly every
|
|
28 operating system known to humanity. Now use Vim on OpenVMS too, in character
|
|
29 or X/Motif environment. It is fully featured and absolutely compatible with
|
|
30 Vim on other operating systems.
|
|
31
|
|
32 ==============================================================================
|
|
33
|
|
34 2. Download files *vms-download*
|
|
35
|
|
36 You can download the Vim source code by ftp from the official Vim site:
|
|
37 ftp://ftp.vim.org/pub/vim/
|
|
38 Or use one of the mirrors:
|
|
39 ftp://ftp.vim.org/pub/vim/MIRRORS
|
|
40
|
|
41 You will need both the Unix and Extra archives to build vim.exe for VMS.
|
|
42 For using Vim's full power you will need the runtime files as well.
|
|
43
|
|
44 You can download precompiled executables from:
|
|
45 http://www.polarhome.com/vim/
|
|
46 ftp://ftp.polarhome.com/pub/vim/
|
|
47
|
|
48 To use the precompiled binary version, you need one of these archives:
|
|
49
|
|
50 vim-XX-exe-alpha-gui.zip Alpha GUI/Motif executables
|
|
51 vim-XX-exe-alpha-gtk.zip Alpha GUI/GTK executables
|
|
52 vim-XX-exe-alpha-term.zip Alpha console executables
|
|
53 vim-XX-exe-vax-gui.zip VAX GUI executables
|
|
54 vim-XX-exe-vax-term.zip VAX console executables
|
|
55
|
|
56 and of course
|
|
57 vim-XX-runtime.zip runtime files
|
|
58
|
|
59 The binary archives contain: vim.exe, ctags.exe, xxd.exe, mms_vim.exe files.
|
|
60
|
|
61 ==============================================================================
|
|
62
|
|
63 3. Compiling *vms-compiling*
|
|
64
|
|
65 See the file [.SRC]INSTALLVMS.TXT.
|
|
66
|
|
67 ==============================================================================
|
|
68
|
|
69 4. Problems *vms-problems*
|
|
70
|
|
71 The code has been tested under Open VMS 6.2 - 7.3 on Alpha and VAX platforms
|
236
|
72 with the DEC C compiler. It should work without bigger problems.
|
|
73 If your system does not have some include libraries you can tune up in
|
|
74 OS_VMS_CONF.H file.
|
7
|
75
|
|
76 If you decided to build Vim with +perl, +python, etc. options, first you need
|
236
|
77 to download OpenVMS distributions of Perl and Python. Build and deploy the
|
|
78 libraries and change adequate lines in MAKE_VMS.MMS file. There should not be
|
|
79 a problem from Vim side.
|
7
|
80
|
236
|
81 Note: Under VAX it should work with the DEC C compiler without problems. The
|
|
82 VAX C compiler is not fully ANSI C compatible in pre-processor directives
|
|
83 semantics, therefore you have to use a converter program what will do the lion
|
|
84 part of the job. For detailed instructions read file INSTALLvms.txt
|
7
|
85
|
236
|
86 MMS_VIM.EXE is build together with VIM.EXE, but for XD.EXE you should
|
7
|
87 change to subdirectory and build it separately.
|
|
88
|
236
|
89 CTAGS is not part of the Vim source distribution anymore, however the OpenVMS
|
|
90 specific source might contain CTAGS source files as described above.
|
7
|
91 You can find more information about CTAGS on VMS at
|
|
92 http://www.polarhome.com/ctags/
|
|
93
|
|
94 Advanced users may try some acrobatics in FEATURE.H file also.
|
|
95
|
|
96 It is possible to compile with +xfontset +xim options too, but then you have
|
236
|
97 to set up GUI fonts etc. correctly. See :help xim from Vim command prompt.
|
7
|
98
|
|
99 You may want to use GUI with GTK icons, then you have to download and install
|
|
100 GTK for OpenVMS or at least runtime shareable images - LIBGTK from
|
|
101 polarhome.com
|
|
102
|
|
103 For more advanced questions, please send your problem to Vim on VMS mailing
|
|
104 list <vim-vms@polarhome.com>
|
|
105 More about the vim-vms list can be found at:
|
|
106 http://www.polarhome.com/mailman/listinfo/vim-vms
|
|
107
|
|
108 ==============================================================================
|
|
109
|
|
110 5. Deploy *vms-deploy*
|
|
111
|
|
112 Vim uses a special directory structure to hold the document and runtime files:
|
|
113
|
|
114 vim (or wherever)
|
|
115 |- tmp
|
|
116 |- vim57
|
|
117 |----- doc
|
|
118 |----- syntax
|
|
119 |- vim60
|
|
120 |----- doc
|
|
121 |----- syntax
|
|
122 |- vim61
|
|
123 |----- doc
|
|
124 |----- syntax
|
|
125 vimrc (system rc files)
|
|
126 gvimrc
|
|
127
|
|
128 Use: >
|
|
129
|
|
130 define/nolog VIM device:[path.vim]
|
|
131 define/nolog VIMRUNTIME device:[path.vim.vim60]
|
|
132 define/nolog TMP device:[path.tmp]
|
|
133
|
|
134 to get vim.exe to find its document, filetype, and syntax files, and to
|
236
|
135 specify a directory where temporary files will be located. Copy the "runtime"
|
7
|
136 subdirectory of the vim distribution to vimruntime.
|
|
137
|
|
138 Logicals $VIMRUNTIME and $TMP are optional.
|
|
139
|
|
140 If $VIMRUNTIME is not set, Vim will guess and try to set up automatically.
|
236
|
141 Read more about it at :help runtime
|
7
|
142
|
|
143 If $TMP is not set, you will not be able to use some functions as CTAGS,
|
|
144 XXD, printing etc. that use temporary directory for normal operation.
|
236
|
145 The $TMP directory should be readable and writable by the user(s).
|
|
146 The easiest way to set up $TMP is to define a logical: >
|
7
|
147
|
|
148 define/nolog TMP SYS$SCRATCH
|
|
149 or as: >
|
|
150 define/nolog TMP SYS$LOGIN
|
|
151
|
|
152 ==============================================================================
|
|
153
|
|
154 6. Practical usage *vms-usage*
|
|
155
|
|
156 Usually, you want to run just one version of Vim on your system, therefore
|
|
157 it is enough to dedicate one directory for Vim.
|
236
|
158 Copy the whole Vim runtime directory structure to the deployment position.
|
7
|
159 Add the following lines to your LOGIN.COM (in SYS$LOGIN directory).
|
236
|
160 Set up the logical $VIM as: >
|
7
|
161
|
|
162 $ define VIM device:<path>
|
|
163
|
|
164 Set up some symbols: >
|
|
165
|
|
166 $ ! vi starts Vim in chr. mode.
|
|
167 $ vi*m :== mcr VIM:VIM.EXE
|
|
168
|
|
169 $ !gvi starts Vim in GUI mode.
|
|
170 $ gv*im :== spawn/nowait mcr VIM:VIM.EXE -g
|
|
171
|
|
172 Please, check the notes for customization and configuration of symbols.
|
|
173
|
|
174 You may want to create .vimrc and .gvimrc files in your home directory
|
|
175 (SYS$LOGIN) to overwrite default settings.
|
|
176
|
236
|
177 The easiest way is just rename example files. You may leave the menu file
|
|
178 (MENU.VIM) and files vimrc and gvimrc in the original $VIM directory. It will
|
|
179 be default setup for all users, and for users it is enough just to have their
|
|
180 own additions or resetting in their home directory in files .vimrc and .gvimrc.
|
7
|
181 It should work without problems.
|
|
182
|
236
|
183 Note: Remember, system rc files (default for all users) don't have a leading
|
|
184 ".". So, system rc files are: >
|
7
|
185
|
|
186 $VIM:vimrc
|
|
187 $VIM:gvimrc
|
|
188 $VIM:menu.vim
|
|
189
|
236
|
190 and user customized rc files are: >
|
7
|
191
|
|
192 sys$login:.vimrc
|
|
193 sys$login:.gvimrc
|
|
194
|
|
195 You can check that everything is on the right place with the :version command.
|
|
196
|
|
197 Example LOGIN.COM: >
|
|
198
|
|
199 $ define/nolog VIM RF10:[UTIL.VIM]
|
|
200 $ vi*m :== mcr VIM:VIM.EXE
|
|
201 $ gv*im:== spawn/nowait/input=NLA0 mcr VIM:VIM.EXE -g -GEOMETRY 80x40
|
|
202 $ set disp/create/node=192.168.5.223/trans=tcpip
|
|
203
|
|
204 Note: This set-up should be enough, if you are working on standalone server or
|
|
205 clustered environment, but if you want to use Vim as internode editor in
|
236
|
206 DECNET environment, it will satisfy as well.
|
7
|
207 You just have to define the "whole" path: >
|
|
208
|
|
209 $ define VIM "<server_name>[""user password""]::device:<path>"
|
|
210 $ vi*m :== "mcr VIM:VIM.EXE"
|
|
211
|
|
212 as for example: >
|
|
213
|
|
214 $ define VIM "PLUTO::RF10:[UTIL.VIM]"
|
|
215 $ define VIM "PLUTO""ZAY mypass""::RF10:[UTIL.VIM]" ! if passwd required
|
|
216
|
236
|
217 You can also use the $VIMRUNTIME logical to point to the proper version of Vim
|
|
218 if you have installed more versions at the same time. If $VIMRUNTIME is not
|
|
219 defined Vim will borrow its value from the $VIM logical. You can find more
|
|
220 information about the $VIMRUNTIME logical by typing :help runtime as a Vim
|
|
221 command.
|
7
|
222
|
|
223 System administrators might want to set up a system wide Vim installation,
|
|
224 then add to the SYS$STARTUP:SYLOGICALS.COM >
|
|
225
|
|
226 $ define/nolog/sys VIM device:<path>
|
|
227 $ define/nolog/sys TMP SYS$SCRATCH
|
|
228
|
|
229 and to the SYS$STARTUP:SYLOGIN.COM >
|
|
230
|
|
231 $ vi*m :== mcr VIM:VIM.EXE
|
|
232 $ gv*im:== spawn/nowait/input=NLA0 mcr VIM:VIM.EXE -g -GEOMETRY 80x40
|
|
233
|
|
234
|
236
|
235 It will set up a normal Vim work environment for every user on the system.
|
7
|
236
|
|
237 ==============================================================================
|
|
238
|
|
239 7. GUI mode questions *vms-gui*
|
|
240
|
236
|
241 OpenVMS is a real mainframe OS, therefore even if it has a GUI console, most
|
|
242 of the users do not use a native X/Window environment during normal operation.
|
|
243 It is not possible to start Vim in GUI mode "just like that". But anyhow it
|
|
244 is not too complicated either.
|
7
|
245
|
236
|
246 First of all: you will need an executable that is built with the GUI enabled.
|
7
|
247
|
|
248 Second: you need to have installed DECW/Motif on your VMS server, otherwise
|
|
249 you will get errors that some shareable libraries are missing.
|
|
250
|
236
|
251 Third: If you choose to run Vim with extra features such as GUI/GTK then you
|
|
252 need a GTK installation too or at least a GTK runtime environment (LIBGTK
|
|
253 etc.).
|
7
|
254
|
|
255 1) If you are working on the VMS X/Motif console:
|
|
256 Start Vim with the command: >
|
|
257
|
|
258 $ mc device:<path>VIM.EXE -g
|
|
259 <
|
236
|
260 or type :gui as a command to the Vim command prompt. For more info :help
|
|
261 gui
|
7
|
262
|
236
|
263 2) If you are working on some other X/Window environment like Unix or a remote
|
|
264 X VMS console. Set up display to your host with: >
|
7
|
265
|
|
266 $ set disp/create/node=<your IP address>/trans=<transport-name>
|
|
267 <
|
236
|
268 and start Vim as in point 1. You can find more help in VMS documentation or
|
7
|
269 type: help set disp in VMS prompt.
|
|
270 Examples: >
|
|
271
|
|
272 $ set disp/create/node=192.168.5.159 ! default trans is DECnet
|
|
273 $ set disp/create/node=192.168.5.159/trans=tcpip ! TCP/IP network
|
|
274 $ set disp/create/node=192.168.5.159/trans=local ! display on the same node
|
|
275
|
|
276 Note: you should define just one of these.
|
|
277 For more information type $help set disp in VMS prompt.
|
|
278
|
|
279 3) Another elegant solution is XDM if you have installed on OpenVMS box.
|
|
280 It is possible to work from XDM client as from GUI console.
|
|
281
|
236
|
282 4) If you are working on MS-Windows or some other non X/Window environment
|
|
283 you need to set up one X server and run Vim as in point 2.
|
|
284 For MS-Windows there are available free X servers as MIX , Omni X etc.,
|
7
|
285 as well as excellent commercial products as eXcursion or ReflectionX with
|
236
|
286 built-in DEC support.
|
7
|
287
|
|
288 Please note, that executables without GUI are slightly faster during startup
|
|
289 then with enabled GUI in character mode. Therefore, if you do not use GUI
|
|
290 features, it is worth to choose non GUI executables.
|
|
291
|
|
292 ==============================================================================
|
|
293
|
|
294 8. Useful notes *vms-notes*
|
|
295
|
|
296 8.1 backspace/delete
|
|
297 8.2 Filters
|
|
298 8.3 VMS file version numbers
|
|
299 8.4 Directory conversion
|
|
300 8.5 Remote host invocation
|
|
301 8.6 Terminal problems
|
|
302 8.7 Hex-editing and other external tools
|
|
303 8.8 Sourcing vimrc and gvimrc
|
|
304 8.9 Printing from Vim
|
|
305 8.10 Setting up the symbols
|
|
306 8.11 diff and other GNU programs
|
|
307 8.12 diff-mode
|
|
308 8.13 Allow '$' in C keywords
|
|
309 8.14 VIMTUTOR for beginners
|
|
310
|
|
311 8.1 backspace/delete
|
|
312
|
|
313 There are backspace/delete key inconsistencies with VMS.
|
|
314 :fixdel doesn't do the trick, but the solution is: >
|
|
315
|
|
316 :inoremap ^? ^H " for terminal mode
|
|
317 :inoremap <Del> ^H " for gui mode
|
|
318
|
|
319 Read more in ch: 8.6 (Terminal problems).
|
|
320 (Bruce Hunsaker <BNHunsaker@chq.byu.edu> Vim 5.3)
|
|
321
|
|
322
|
|
323 8.2 Filters
|
|
324
|
236
|
325 Vim supports filters, i.e., if you have a sort program that can handle
|
7
|
326 input/output redirection like Unix (<infile >outfile), you could use >
|
|
327
|
|
328 :map \s 0!'aqsort<CR>
|
|
329
|
|
330 (Charles E. Campbell, Jr. <cec@gryphon.gsfc.nasa.gov> Vim 5.4)
|
|
331
|
|
332
|
|
333 8.3 VMS file version numbers
|
|
334
|
|
335 Vim is saving files into a new file with the next higher file version
|
|
336 number, try these settings. >
|
|
337
|
|
338 :set nobackup " does not create *.*_ backup files
|
236
|
339 :set nowritebackup " does not have any purpose on VMS. It's the
|
|
340 " default.
|
7
|
341
|
|
342 Recovery is working perfect as well from the default swap file.
|
|
343 Read more with :help swapfile
|
|
344
|
|
345 (Claude Marinier <ClaudeMarinier@xwavesolutions.com> Vim 5.5, Zoltan Arpadffy
|
236
|
346 Vim 5.6)
|
7
|
347
|
|
348
|
|
349 8.4 Directory conversion
|
|
350
|
|
351 Vim will internally convert any unix-style paths and even mixed unix/VMS
|
236
|
352 paths into VMS style paths. Some typical conversions resemble:
|
7
|
353
|
|
354 /abc/def/ghi -> abc:[def]ghi.
|
|
355 /abc/def/ghi.j -> abc:[def]ghi.j
|
|
356 /abc/def/ghi.j;2 -> abc:[def]ghi.j;2
|
|
357 /abc/def/ghi/jkl/mno -> abc:[def.ghi.jkl]mno.
|
|
358 abc:[def.ghi]jkl/mno -> abc:[def.ghi.jkl]mno.
|
|
359 ./ -> current directory
|
|
360 ../ -> relative parent directory
|
|
361 [.def.ghi] -> relative child directory
|
|
362 ./def/ghi -> relative child directory
|
|
363
|
|
364 Note: You may use <,> brackets as well (device:<path>file.ext;version) as
|
|
365 rf10:<user.zay.work>test.c;1
|
|
366
|
|
367 (David Elins <delins@foliage.com>, Jerome Lauret
|
|
368 <JLAURET@mail.chem.sunysb.edu> Vim 5.6 )
|
|
369
|
|
370
|
|
371 8.5 Remote host invocation
|
|
372
|
|
373 It is possible to use Vim as an internode editor.
|
|
374 1. Edit some file from remote node: >
|
|
375
|
|
376 vi "<server>""username passwd""::<device>:<path><filename>;<version>"
|
|
377
|
|
378 example: >
|
|
379 vi "pluto""zay passwd""::RF10:<USER.ZAY.WORK>TEST.C;1"
|
|
380
|
|
381 Note: syntax is very important, otherwise VMS will recognize more parameters
|
|
382 instead of one (resulting with: file not found)
|
|
383
|
236
|
384 2. Set up Vim as your internode editor. If Vim is not installed on your
|
|
385 host, just set up your IP address, the full Vim path including the server name
|
|
386 and run the command procedure below: >
|
7
|
387
|
|
388 $ if (p1 .eqs. "") .OR. (p2 .eqs. "") then goto usage
|
|
389 $ set disp/create/node=<your_IP_here>/trans=tcpip
|
|
390 $ define "VIM "<vim_server>""''p1' ''p2'""::<device>:<vim_path>"
|
|
391 $ vi*m :== "mcr VIM:VIM.EXE"
|
|
392 $ gv*im :== "spawn/nowait mcr VIM:VIM.EXE -g"
|
|
393 $ goto end
|
|
394 $ usage:
|
|
395 $ write sys$output " Please enter username and password as a parameter."
|
|
396 $ write sys$output " Example: @SETVIM.COM username passwd"
|
|
397 $ end:
|
|
398
|
236
|
399 Note: Never use it in a clustered environment (you do not need it), loading
|
|
400 could be very-very slow, but even faster then a local Emacs. :-)
|
7
|
401
|
|
402 (Zoltan Arpadffy, Vim 5.6)
|
|
403
|
|
404
|
|
405 8.6 Terminal problems
|
|
406
|
|
407 If your terminal name is not known to Vim and it is trying to find the default
|
|
408 one you will get the following message during start-up:
|
|
409 ---
|
|
410 Terminal entry not found in termcap
|
236
|
411 'unknown-terminal' not known. Available built-in terminals are:
|
7
|
412 builtin_gui
|
|
413 builtin_riscos
|
|
414 builtin_amiga
|
|
415 builtin_beos-ansi
|
|
416 builtin_ansi
|
|
417 builtin_vt320
|
|
418 builtin_vt52
|
|
419 builtin_pcansi
|
|
420 builtin_win32
|
|
421 builtin_xterm
|
|
422 builtin_iris-ansi
|
|
423 builtin_debug
|
|
424 builtin_dumb
|
|
425 defaulting to 'vt320'
|
|
426 ---
|
|
427 The solution is to define default terminal name: >
|
|
428
|
236
|
429 $ ! unknown terminal name. Let us use vt320 or ansi instead.
|
7
|
430 $ ! Note: it's case sensitive
|
|
431 $ define term "vt320"
|
|
432
|
|
433 Terminals from VT100 to VT320 (as V300, VT220, VT200 ) do not need any extra
|
236
|
434 keyboard mappings. They should work perfect as they are, including arrows,
|
|
435 Ins, Del buttons etc., except Backspace in GUI mode. To solve it, add to
|
7
|
436 .gvimrc: >
|
|
437
|
|
438 inoremap <Del> <BS>
|
|
439
|
|
440 Vim will also recognize that they are fast terminals.
|
|
441
|
|
442 If you have some annoying line jumping on the screen between windows add to
|
|
443 your .vimrc file: >
|
|
444
|
|
445 set ttyfast " set fast terminal
|
|
446
|
|
447 Note: if you're using Vim on remote host or through very slow connection, it's
|
|
448 recommended to avoid fast terminal option with: >
|
|
449
|
|
450 set nottyfast " set terminal to slow mode
|
|
451
|
|
452 (Zoltan Arpadffy, Vim 5.6)
|
|
453
|
|
454
|
|
455 8.7 Hex-editing and other external tools
|
|
456
|
|
457 A very important difference between OpenVMS and other systems is that VMS uses
|
|
458 special commands to execute executables: >
|
|
459
|
|
460 RUN <path>filename
|
|
461 MCR <path>filename <parameters>
|
|
462
|
|
463 OpenVMS users always have to be aware that the Vim command :! "just" drop them
|
236
|
464 to DCL prompt. This feature is possible to use without any problem with all
|
7
|
465 DCL commands, but if we want to execute some program as XXD, CTAGS, JTAGS etc.
|
236
|
466 we're running into trouble if we follow the Vim documentation (see: help
|
7
|
467 xxd).
|
|
468
|
|
469 Solution: Execute with the MC command and add the full path to the executable.
|
|
470 Example: Instead of :%!xxd command use: >
|
|
471
|
|
472 :%!mc vim:xxd
|
|
473
|
|
474 ... or in general: >
|
|
475 :!mc <path>filename <parameters>
|
|
476
|
236
|
477 Note: You can use XXD and CTAGS from GUI menu.
|
7
|
478
|
236
|
479 To customize ctags it is possible to define the logical $CTAGS with standard
|
7
|
480 parameters as: >
|
|
481
|
|
482 define/nolog CTAGS "--totals -o sys$login:tags"
|
|
483
|
|
484 For additional information, please read :help tagsearch and CTAGS
|
|
485 documentation at http://ctags.sourceforge.net/ctags.html.
|
|
486
|
|
487 (Zoltan Arpadffy, Vim 5.6-70)
|
|
488
|
|
489
|
|
490 8.8 Sourcing vimrc and gvimrc
|
|
491
|
|
492 If you want to use your .vimrc and .gvimrc from other platforms (e.g. Windows)
|
|
493 you can get in trouble if you ftp that file(s): VMS has different end-of-line
|
|
494 indication.
|
236
|
495 The symptom is that Vim is not sourcing your .vimrc/.gvimrc, even if you say:
|
7
|
496 >
|
|
497 :so sys$login:.vimrc
|
|
498
|
|
499 One trick is to compress (e.g. zip) the files on the other platform and
|
|
500 uncompress it on VMS; if you have the same symptom, try to create the files
|
|
501 with copy-paste (for this you need both op. systems reachable from one
|
|
502 machine, e.g. an Xterm on Windows or telnet to Windows from VMS).
|
|
503
|
|
504 (Sandor Kopanyi, <sandor.kopanyi@mailbox.hu> Vim 6.0a)
|
|
505
|
|
506
|
|
507 8.9 Printing from Vim
|
|
508
|
|
509 To be able to print from Vim (running in GUI mode) under VMS you have to set
|
|
510 up $TMP logical which should point to some temporary directory and logical
|
|
511 SYS$PRINT to your default print queue.
|
|
512 Example: >
|
|
513
|
|
514 $define SYS$PRINT HP5ANSI
|
|
515
|
|
516 You can print out whole buffer or just the marked area.
|
|
517 More info under :help hardcopy
|
|
518
|
|
519 (Zoltan Arpadffy, Vim 6.0c)
|
|
520
|
|
521
|
|
522 8.10 Setting up the symbols
|
|
523
|
|
524 When I use GVIM this way and press CTRL-Y in the parent terminal, gvim exits.
|
|
525 I now use a different symbol that seems to work OK and fixes the problem.
|
|
526 I suggest this instead: >
|
|
527
|
|
528 $ GV*IM:==SPAWN/NOWAIT/INPUT=NLA0: MCR VIM:VIM.EXE -G -GEOMETRY 80X40
|
|
529
|
|
530 The /INPUT=NLA0: separates the standard input of the gvim process from the
|
|
531 parent terminal, to block signals from the parent window.
|
|
532 Without the -GEOMETRY, the GVIM window size will be minimal and the menu
|
|
533 will be confused after a window-resize.
|
|
534
|
|
535 (Carlo Mekenkamp, Coen Engelbarts, Vim 6.0ac)
|
|
536
|
|
537
|
|
538 8.11 diff and other GNU programs
|
|
539
|
|
540 From 6.0 diff functionality has been implemented, but OpenVMS does not use
|
|
541 GNU/Unix like diff therefore built in diff does not work.
|
236
|
542 There is a simple solution to solve this anomaly. Install a Unix like diff
|
|
543 and Vim will work perfect in diff mode too. You just have to redefine your
|
7
|
544 diff program as: >
|
|
545
|
|
546 define /nolog diff <GNU_PATH>diff.exe
|
|
547
|
|
548 Another, more sophisticated solution is described below (8.12 diff-mode)
|
|
549 There are some other programs as patch, make etc that may cause same problems.
|
|
550 At www.polarhome.com is possible to download an GNU package for Alpha and VAX
|
|
551 boxes that is meant to solve GNU problems on OpenVMS.
|
|
552 ( Zoltan Arpadffy, Vim 6.1)
|
|
553
|
|
554
|
|
555 8.12 diff-mode
|
|
556
|
|
557 Vim 6.0 and higher supports vim diff-mode (See |new-diff-mode|, |diff-mode|
|
236
|
558 and |08.7|). This uses the external program 'diff' and expects a Unix-like
|
|
559 output format from diff. The standard VMS diff has a different output
|
|
560 format. To use vim on VMS in diff-mode, you need to:
|
7
|
561 1 Install a Unix-like diff program, e.g. GNU diff
|
|
562 2 Tell vim to use the Unix-like diff for diff-mode.
|
|
563
|
|
564 You can download GNU diff from the VIM-VMS website, it is one of the GNU
|
236
|
565 tools in http://www.polarhome.com/vim/files/gnu_tools.zip. I suggest to
|
7
|
566 unpack it in a separate directory "GNU" and create a logical GNU: that
|
236
|
567 points to that directory, e.g: >
|
7
|
568
|
|
569 DEFINE GNU <DISK>:[<DIRECTORY>.BIN.GNU]
|
|
570
|
|
571 You may also want to define a symbol GDIFF, to use the GNU diff from the DCL
|
|
572 prompt: >
|
|
573
|
|
574 GDIFF :== $GNU:DIFF.EXE
|
|
575
|
236
|
576 Now you need to tell vim to use the new diff program. Take the example
|
7
|
577 settings from |diff-diffexpr| and change the call to the external diff
|
236
|
578 program to the new diff on VMS. Add this to your .vimrc file: >
|
7
|
579
|
|
580 " Set up vimdiff options
|
|
581 if v:version >= 600
|
|
582 " Use GNU diff on VMS
|
|
583 set diffexpr=MyDiff()
|
|
584 function MyDiff()
|
|
585 let opt = ""
|
|
586 if &diffopt =~ "icase"
|
|
587 let opt = opt . "-i "
|
|
588 endif
|
|
589 if &diffopt =~ "iwhite"
|
|
590 let opt = opt . "-b "
|
|
591 endif
|
|
592 silent execute "!mc GNU:diff.exe -a " . opt . v:fname_in . " " . v:fname_new .
|
|
593 \ " > " . v:fname_out
|
|
594 endfunction
|
|
595 endif
|
|
596
|
|
597 You can now use vim in diff-mode, e.g. to compare two files in read-only
|
|
598 mode: >
|
|
599
|
|
600 $ VIM -D/R <FILE1> <FILE2>
|
|
601
|
|
602 You can also define new symbols for vimdiff, e.g.: >
|
|
603
|
|
604 $ VIMDIFF :== 'VIM' -D/R
|
|
605 $ GVIMDIFF :== 'GVIM' -D/R
|
|
606
|
|
607 You can now compare files in 4 ways: >
|
|
608
|
|
609 1. VMS diff: $ DIFF <FILE1> <FILE2>
|
|
610 2. GNU diff: $ GDIFF <FILE1> <FILE2>
|
|
611 3. VIM diff: $ VIMDIFF <FILE1> <FILE2>
|
|
612 4. GVIM diff: $ GVIMDIFF <FILE1> <FILE2>
|
|
613
|
|
614 ( Coen Engelbarts, Vim 6.1)
|
|
615
|
|
616
|
|
617 8.13 Allow '$' in C keywords
|
|
618
|
236
|
619 DEC C uses many identifiers with '$' in them. This is not allowed in ANSI C,
|
|
620 and vim recognises the '$' as the end of the identifier. You can change this
|
7
|
621 with the |iskeyword|command.
|
|
622 Add this command to your .vimrc file: >
|
|
623
|
|
624 autocmd FileType c,cpp,cs set iskeyword+=$
|
|
625
|
|
626 You can also create the file(s) $VIM/FTPLUGIN/C.VIM (and/or CPP.VIM and
|
|
627 CS.VIM) and add this command: >
|
|
628
|
|
629 set iskeyword+=$
|
|
630
|
|
631 Now word-based commands, e.g. the '*'-search-command and the CTRL-]
|
236
|
632 tag-lookup, work on the whole identifier. (Ctags on VMS also supports '$' in
|
7
|
633 C keywords since ctags version 5.1.)
|
|
634
|
|
635 ( Coen Engelbarts, Vim 6.1)
|
|
636
|
|
637 8.14 VIMTUTOR for beginners
|
|
638
|
|
639 It exits VIMTUTOR.COM DCL script that can help Vim beginners to learn/make
|
236
|
640 first steps with Vim on OpenVMS. Depending of binary distribution you may
|
|
641 start it with: >
|
7
|
642
|
|
643 @vim:vimtutor
|
|
644
|
|
645 (Thomas.R.Wyant III, Vim 6.1)
|
|
646
|
|
647 ==============================================================================
|
|
648
|
|
649 9. VMS related changes *vms-changes*
|
|
650
|
|
651 Version 6.3 (2004 May 10)
|
|
652 - Improved vms_read function
|
|
653 - CTAGS v5.5.4 included
|
|
654 - Documentation corrected and updated
|
|
655
|
|
656 Version 6.2 (2003 May 7)
|
|
657 - Corrected VMS system call results
|
|
658 - Low level character input is rewritten
|
|
659 - Correction in tag and quickfix handling
|
|
660 - First GTK build
|
|
661 - Make file changes
|
|
662 - GTK feature added
|
|
663 - Define for OLD_VMS
|
|
664 - OpenVMS version 6.2 or older
|
|
665 - Documentation updated with GTK features
|
|
666 - CTAGS v5.5 included
|
|
667 - VMS VIM tutor created
|
|
668
|
|
669 Version 6.1 (2002 Mar 25)
|
|
670 - TCL init_tcl() problem fixed
|
|
671 - CTAGS v5.4 included
|
|
672 - GNU tools binaries for OpenVMS
|
|
673 - Make file changes
|
|
674 - PERL, PYTHON and TCL support improved
|
|
675 - InstallVMS.txt has a detailed description HOWTO build
|
|
676 - VMS/Unix file handling rewritten
|
|
677 - Minor casting and bug fixes
|
|
678
|
|
679 Version 6.0 (2001 Sep 28)
|
|
680 - Unix and VMS code has been merged
|
|
681 - separated "really" VMS related code
|
|
682 - included all possible Unix functionality
|
|
683 - simplified or deleted the configuration files
|
|
684 - makefile MAKE_VMS.MMS reviewed
|
|
685 - menu changes (fixed printing, CTAGS and XXD usage)
|
|
686 - fixed variable RMS record format handling anomaly
|
|
687 - corrected syntax, ftplugin etc files load
|
|
688 - changed expand_wildcards and expandpath functions to work more general
|
|
689 - created OS_VMS_FILTER.COM - DECC->VAXC pre-processor directive convert
|
|
690 script.
|
|
691 - Improved code's VAXC and new DECC compilers compatibility
|
|
692 - changed quickfix parameters:
|
|
693 - errormessage format to suite DECC
|
|
694 - search, make and other commands to suite VMS system
|
|
695 - updated and renamed MMS make files for Vim and CTAGS.
|
|
696 - CTAGS has been removed from source distribution of Vim but it will remain
|
|
697 in OpenVMS binary distributions.
|
|
698 - simplified build/configuration procedure
|
|
699 - created INSTALLvms.txt - detailed compiling instructions under VMS.
|
|
700 - updated test scripts.
|
|
701
|
|
702 Version 5.8 (2001 Jun 1)
|
|
703 - OS_VMS.TXT updated with new features.
|
|
704 - other minor fixes.
|
|
705 - documentation updated
|
|
706 - this version had been tested much more than any other OpenVMS version
|
|
707 earlier
|
|
708
|
|
709 Version 5.7 (2000 Jun 24)
|
|
710 - New CTAGS v5.0 in distribution
|
|
711 - Documentation updated
|
|
712
|
|
713 Version 5.6 (2000 Jan 17)
|
|
714 - VMS filename related changes:
|
|
715 - version handling (open everything, save to new version)
|
|
716 - correct file extension matching for syntax (version problem)
|
|
717 - handle <,> characters and passwords in directory definition
|
|
718 - handle internode/remote invocation and editing with passwords
|
|
719 - OpenVMS files will be treated case insensitive from now
|
|
720 - corrected response of expand("%:.") etc path related functions
|
|
721 (in one word: VMS directory handling internally)
|
|
722 - version command
|
|
723 - corrected (+,-) information data
|
|
724 - added compiler and OS version
|
|
725 - added user and host information
|
|
726 - resolving $VIM and $VIMRUNTIME logicals
|
|
727 - VMS port is in MAX_FEAT (maximum features) club with Unix, Win32 and OS/2.
|
|
728 - enabled farsi, rightleft etc. features
|
|
729 - undo level raised up to 1000
|
|
730 - Updated OS_VMS.MMS file.
|
|
731 - maximum features ON is default
|
|
732 - Vim is compilable with +perl, +python and +tcl features.
|
|
733 - improved MMK compatibility
|
|
734 - Created MAKEFILE_VMS.MMS, makefile for testing Vim during development.
|
|
735 - Defined DEC terminal VT320
|
|
736 - compatibility for VT3*0, VT2*0 and VT1*0 - ANSI terminals
|
|
737 backwards, but not VT340 and newer with colour capability.
|
|
738 - VT320 is default terminal for OpenVMS
|
|
739 - these new terminals are also fast ttys (default for OpenVMS).
|
|
740 - allowed dec_mouse ttym
|
|
741 - Updated files vimrc and gvimrc with VMS specific suggestions.
|
|
742 - OS_VMS.TXT updated with new features.
|
|
743
|
|
744 Version 5.5 (1999 Dec 3)
|
|
745 - Popup menu line crash corrected.
|
|
746 - Handle full file names with version numbers.
|
|
747 - Directory handling (CD command etc.)
|
|
748 - Corrected file name conversion VMS to Unix and v.v.
|
|
749 - Correct response of expand wildcards
|
|
750 - Recovery is working from this version under VMS as well.
|
|
751 - Improved terminal and signal handing.
|
|
752 - Improved OS_VMS.TXT
|
|
753
|
|
754 Version 5.4 (1999 Sep 9)
|
|
755 - Cut and paste mismatch corrected.
|
|
756 - Motif directories during open and save are corrected.
|
|
757
|
|
758 Version 5.3 (1998 Oct 12)
|
|
759 - Minor changes in the code
|
|
760 - Standard distribution with +GUI option
|
|
761
|
|
762 Version 5.1 (1998 Apr 21)
|
|
763 - Syntax and DEC C changes in the code
|
|
764 - Fixing problems with the /doc subdirectory
|
|
765 - Improve OS_VMS.MMS
|
|
766
|
|
767 Version 4.5 (1996 Dec 16)
|
|
768 - First VMS port by Henk Elbers <henk@xs4all.nl>
|
|
769
|
|
770 ==============================================================================
|
|
771
|
|
772 10. Authors *vms-authors*
|
|
773
|
|
774 OpenVMS documentation and executables are maintained by:
|
|
775 Zoltan Arpadffy <arpadffy@polarhome.com>
|
|
776
|
|
777 This document uses parts and remarks from earlier authors and contributors
|
|
778 of OS_VMS.TXT:
|
|
779 Charles E. Campbell, Jr. <cec@gryphon.gsfc.nasa.gov>
|
|
780 Bruce Hunsaker <BNHunsaker@chq.byu.edu>
|
|
781 Sandor Kopanyi <sandor.kopanyi@mailbox.hu>
|
|
782
|
|
783 vim:tw=78:ts=8:ft=help:norl:
|