Christian Brabandt | b4ddc6c | 2024-01-02 16:51:11 +0100 | [diff] [blame] | 1 | *os_390.txt* For Vim version 9.1. Last change: 2019 Dec 07 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | |
| 4 | VIM REFERENCE MANUAL by Ralf Schandl |
| 5 | |
| 6 | *zOS* *z/OS* *OS390* *os390* *MVS* |
| 7 | This file contains the particulars for the z/OS UNIX version of Vim. |
| 8 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 9 | 1. ASCII/EBCDIC dependent scripts |zOS-has-ebcdic| |
Bram Moolenaar | 945e2db | 2010-06-05 17:43:32 +0200 | [diff] [blame] | 10 | 2. Putty and Colors |zOS-PuTTY| |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 11 | 3. Motif Problems |zOS-Motif| |
| 12 | 4. Bugs |zOS-Bugs| |
Bram Moolenaar | 938ae28 | 2023-02-20 20:44:55 +0000 | [diff] [blame] | 13 | 5. Limitations |zOS-limitations| |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 14 | 6. Open source on z/OS UNIX |zOS-open-source| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15 | |
| 16 | Contributors: ~ |
| 17 | The port to z/OS UNIX was done by Ralf Schandl for the Redbook mentioned |
| 18 | below. |
| 19 | |
| 20 | Changes, bug-reports, or both by: |
| 21 | |
| 22 | David Moore |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 23 | Anthony Giorgio |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | and others |
| 25 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 26 | ============================================================================== |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 27 | 1. ASCII/EBCDIC dependent scripts *OS390-has-ebcdic* *zOS-has-ebcdic* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 28 | |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 29 | For the internal script language the feature "ebcdic" was added. With this |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 30 | you can fix ASCII dependent scripts like this: |
| 31 | > |
| 32 | if has("ebcdic") |
| 33 | let space = 64 |
| 34 | else |
| 35 | let space = 32 |
| 36 | endif |
| 37 | < |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 38 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 39 | ============================================================================== |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 40 | 2. PuTTY and Colors *OS390-PuTTY* *zOS-PuTTY* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 41 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 42 | If you see problems with syntax highlighting or screen corruptions when you |
| 43 | connect to z/OS using Putty, try the following: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 45 | - Configure Putty as "vt220" terminal (Connection->Data) |
| 46 | - Add the following 3 lines to your vimrc: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 47 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 48 | > |
| 49 | set t_AB=[4%p1%dm |
| 50 | set t_AF=[3%p1%dm |
| 51 | set t_CO=8 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 52 | < |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 53 | |
| 54 | Note: is one character use <C-V><Esc> to enter it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 55 | |
| 56 | ============================================================================== |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 57 | 3. Motif Problems *OS390-Motif* *zOS-Motif* |
| 58 | |
| 59 | Note: Seen with Vim 6.*, never tested since. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 60 | |
| 61 | It seems that in porting the Motif library to z/OS, a translation from EBCDIC |
| 62 | to ASCII for the accelerator characters of the pull-down menus was forgotten. |
| 63 | Even after I tried to hand convert the menus, the accelerator keys continued |
| 64 | to only work for the opening of menus (like <Alt-F> to open the file menu). |
| 65 | They still do not work for the menu items themselves (like <Alt-F>O to open |
| 66 | the file browser). |
| 67 | |
Bram Moolenaar | 06b5d51 | 2010-05-22 15:37:44 +0200 | [diff] [blame] | 68 | There is no solution for this yet. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 69 | |
| 70 | ============================================================================== |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 71 | 4. Bugs *OS390-bugs* *zOS-Bugs* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | |
| 73 | - Vim will consistently hang when a large amount of text is selected in |
| 74 | visual block mode. This may be due to a memory corruption issue. Note that |
| 75 | this occurs in both the terminal and gui versions. |
| 76 | |
| 77 | ============================================================================== |
Bram Moolenaar | 938ae28 | 2023-02-20 20:44:55 +0000 | [diff] [blame] | 78 | 5. Limitations *OS390-limitations* *zOS-limitations* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | |
| 80 | - No binary search in tag files. |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 81 | The program /bin/sort sorts by ASCII value by default. This program is |
| 82 | normally used by ctags to sort the tags. There might be a version of |
| 83 | ctags out there, that does it right, but we can't be sure. So this seems to |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 84 | be a permanent restriction. |
| 85 | |
Bram Moolenaar | 2c64ca1 | 2018-10-19 16:22:31 +0200 | [diff] [blame] | 86 | - The cscope interface (|cscope|) doesn't work for the version of cscope that |
| 87 | we use on our mainframe. We have a copy of version 15.0b12, and it causes |
| 88 | Vim to hang when using the "cscope add" command. I'm guessing that the |
| 89 | binary format of the cscope database isn't quite what Vim is expecting. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 90 | I've tried to port the current version of cscope (15.3) to z/OS, without |
| 91 | much success. If anyone is interested in trying, drop me a line if you |
| 92 | make any progress. |
| 93 | |
| 94 | - No glib/gtk support. I have not been able to successfully compile glib on |
| 95 | z/OS UNIX. This means you'll have to live without the pretty gtk toolbar. |
Bram Moolenaar | 664f3cf | 2019-12-07 16:03:51 +0100 | [diff] [blame] | 96 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 97 | Disabled at compile time: |
| 98 | - Multibyte support (|multibyte|) |
| 99 | - Right-to-left mode (|rileft|) |
| 100 | - Farsi key map (|Farsi|) |
| 101 | - Arabic language support (|Arabic|) |
| 102 | - Spell checking (|spell|) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 103 | |
| 104 | Never tested: |
| 105 | - Perl interface (|perl|) |
| 106 | - Hangul input (|hangul|) |
| 107 | - Encryption support (|encryption|) |
| 108 | - Langmap (|'langmap'|) |
| 109 | - Python support (|Python|) |
| 110 | - Right-to-left mode (|'rightleft'|) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 111 | - TCL interface (|tcl|) |
| 112 | ... |
| 113 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 114 | ============================================================================== |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 115 | 6. Open source on z/OS UNIX *OS390-open-source* *zOS-open-source* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 116 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 117 | If you are interested in other Open Source Software on z/OS UNIX, have a |
| 118 | look at the following Redbook: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 119 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 120 | Mike MacIsaac et al |
| 121 | "Open Source Software for z/OS and OS/390 UNIX" |
| 122 | IBM Form Number: SG24-5944-01 |
| 123 | ISBN: 0738424633 |
| 124 | http://www-03.ibm.com/systems/resources/servers_eserver_zseries_zos_unix_redbook_sg245944.pdf |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 125 | |
Bram Moolenaar | 2c704a7 | 2010-06-03 21:17:25 +0200 | [diff] [blame] | 126 | Also look at: |
| 127 | http://www.redbooks.ibm.com |
| 128 | http://www-03.ibm.com/systems/z/os/zos/features/unix/ |
| 129 | http://www-03.ibm.com/systems/z/os/zos/features/unix/library/IBM+Redbooks/index.html |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 130 | |
| 131 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 132 | |
| 133 | ------------------------------------------------------------------------------ |
Bram Moolenaar | 2c64ca1 | 2018-10-19 16:22:31 +0200 | [diff] [blame] | 134 | vim:tw=78:ts=8:noet:ft=help:norl: |