os_390.txt 4.6 KB

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