<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.E-postmall18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dan,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am terribly sorry, but this bug is not
IA64 specific, but as I told you it is connected to console mode special esc
handling.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I’ll add this to know issues, but (at
least) I do not plan to change this part of the code in the near future.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>It took few months and at least ten
different tries before we come up with the current solution that worked
acceptable.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Compaq was also involved but they could
not come up with better code either – or (I guess) they have a better solution,
but they have not contributed to Vim open source porting effort.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am sorry for bad news.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Z<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=SV style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=SV style='font-size:
10.0pt;font-family:Tahoma;font-weight:bold'>Från:</span></font></b><font
size=2 face=Tahoma><span lang=SV style='font-size:10.0pt;font-family:Tahoma'>
Dan [mailto:dan.macdaddy@gmail.com] <br>
<b><span style='font-weight:bold'>Skickat:</span></b> den 2 maj 2008 01:22<br>
<b><span style='font-weight:bold'>Till:</span></b> Zoltan Arpadffy<br>
<b><span style='font-weight:bold'>Ämne:</span></b> Re: Vim on VMS map bug?</span></font><span
lang=SV><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Just to clarify in my
first email, i posted :ver<br>
<br>
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun 14 2007 14:27:07)<br>
OpenVMS version - IA64<br>
<br>
Thanks again<br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Fri, May 2, 2008 at 8:51 AM, Dan <<a
href="mailto:dan.macdaddy@gmail.com">dan.macdaddy@gmail.com</a>> wrote:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks for the info Zoltan.<br>
<br>
I'm using vim in command-line mode. And here is my vimrc:<br>
<br>
hi search ctermbg=White<br>
let Tlist_Ctags_Cmd="dev_users:[dan.VIM]CTAGS.EXE"<br>
set ruler<br>
set number<br>
set hlsearch<br>
set nocompatible<br>
set showmode<br>
set incsearch<br>
set showcmd<br>
set ignorecase smartcase<br>
set nowritebackup<br>
set nobackup<br>
set history=1000<br>
set showmatch<br>
set laststatus=2<br>
set tabstop=4<br>
set shiftwidth=4<br>
set expandtab<br>
syntax on<br>
colorscheme vividchalk<br>
filetype plugin on<br>
" rpa files should use pascal syntax highlighting<br>
au BufRead,BufNewFile *.rpa set filetype=pascal<br>
" keep cursor centered when scrolling with k and j<br>
map k kzz<br>
map j jzz<br>
imap ;; <Esc> " this doesn't work<br>
imap ;; ^[ " neither
does this<br>
<br>
<br>
Another interesting problem i've just found is the permissions are screwed up.<br>
<br>
If i open up the following file in vim, it says it is readonly:<br>
<br>
"timetest.c" [readonly] 13L, 157C<br>
<br>
But in the "ed" editor i have no problem editing it, and here are its
permissions:<br>
<br>
timetest.c;1
1
AHS
(RWED,RWED,RWED,)<o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Thu, May 1, 2008 at 3:46 PM, Zoltan Arpadffy <<a
href="mailto:zoli@polarhome.com" target="_blank">zoli@polarhome.com</a>>
wrote:<o:p></o:p></span></font></p>
<div link=blue vlink=blue>
<div>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Hello Dan,</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Could you please tell me what Vim version and what mode do
you use.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>… because we have had enormous problems with character
reading from the keyboard especially with esc sequences in console mode.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Today (in the last two years) we use a trick with two
sequential reading with different triggers that does the job without causing IO
resource troubles as earlier.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>(see os_vms.c in the Vin source code)</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>I can imagine that this trick can fail with some special
combination of the qio read terminators. But this is valid just for console
mode.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>As Motif and GTK executables use standard VMS X11 input I
guess that switching to GUI would solve your problem.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>To be honest, I am not very keen to touch that part of the
code, because this sequential read trick is some about the tenth in a row of
tried and failed algorithms.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>But if you have a better idea you are very much welcome.</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> /* set up the itemlist for the first read
*/</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> vul_item(&itmlst[0], 0,
TRM$_MODIFIERS,</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> (char *)(
TRM$M_TM_NOECHO | TRM$M_TM_NOEDIT |</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>
TRM$M_TM_NOFILTR | TRM$M_TM_TRMNOECHO |</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>
TRM$M_TM_NORECALL) , 0);</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> vul_item(&itmlst[1], sizeof(trm_mask),
TRM$_TERM, (char *)&trm_mask, 0);</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> /* wait forever for a char */</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> function = (IO$_READLBLK | IO$M_EXTEND);</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> status = sys$qiow(0, iochan, function,
&iosb, 0, 0,</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>
inbuf, nbytes-1, 0, 0, &itmlst, sizeof(itmlst));</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> len = strlen(inbuf); /* how many chars we
got? */</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> /* read immediately the rest in the IO
queue */</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> function = (IO$_READLBLK | IO$M_TIMED |
IO$M_ESCAPE | IO$M_NOECHO | IO$M_NOFILTR);</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> status = sys$qiow(0, iochan, function,
&iosb, 0, 0,</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>
inbuf+len, nbytes-1-len, 0, 0, 0, 0);</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Regards,</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>Z
</span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'> </span></font><o:p></o:p></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=SV style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>Från:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> Dan [mailto:<a
href="mailto:dan.macdaddy@gmail.com" target="_blank">dan.macdaddy@gmail.com</a>]
<br>
<b><span style='font-weight:bold'>Skickat:</span></b> den 1 maj 2008 02:46<br>
<b><span style='font-weight:bold'>Till:</span></b> <a
href="mailto:vim-vms-bugs@polarhome.com" target="_blank">vim-vms-bugs@polarhome.com</a><br>
<b><span style='font-weight:bold'>Ämne:</span></b> Vim on VMS ma</span></font><font
size=2 face=Tahoma><span lang=SV style='font-size:10.0pt;font-family:Tahoma'>p
bug?</span></font><o:p></o:p></p>
</div>
<div>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Hi <br>
<br>
Sorry to bother you but hopefully you may be able to help me.<br>
<br>
It might not be so much a bug, but i am trying to map ;; to <Esc> to
break from insert to command mode.<br>
<br>
It works on windows, and linux but for the life of me i can't get it working on
the VMS port.<br>
<br>
I have tried:<br>
<br>
imap ;; <Esc> <br>
imap ;; ^[ " using ctrl-v then hitting
ESC<br>
<br>
amongst others.<br>
<br>
Interestingly, i can map <Esc> to the v key (but this is not what i want)<br>
<br>
map v ^[<br>
<br>
<br>
Thanks again !!!!<br>
<br>
<br>
(p.s) i'm accessing the vms machine using PowerTerm.<br>
<br>
Here is my version info.<br>
<br>
OpenVMS 8.3 Itanium 64:<br>
<br>
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun 14 2007 14:27:07)<br>
OpenVMS version - IA64<br>
Included patches: 1-2<br>
Compiled by ZAY@TITAN2::<a href="http://TITAN2.SCIGAMES.AT" target="_blank">TITAN2.SCIGAMES.AT</a><br>
Big version without GUI. Features included (+) or not (-):<br>
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist<br>
+cmdline_info +comments +cryptv -cscope -cursorshape +dialog_con +diff
+digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra<br>
+extra_search +farsi +file_in_path +find_in_path +folding -footer -gettext
-hangul_input -iconv +insert_expand +jumplist +keymap<br>
+langmap -libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape +mouse_dec<br>
-mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang
-mzscheme -netbeans_intg -osfiletype +path_extra<br>
-perl +postscript +printer -profile -python +quickfix +reltime +rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline<br>
-sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +tgetent
+termresponse +textobjects +title -toolbar<br>
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace
+wildignore +wildmenu +windows -writebackup -X11<br>
-xfontset -xim -xsmp -xterm_clipboard -xterm_save<br>
system vimrc file: "$VIM/vimrc"<br>
user vimrc file: "sys$login:.vimrc"<br>
2nd user vimrc file: "sys$login:_vimrc"<br>
user exrc file: "sys$login:.exrc"<br>
2nd user exrc file: "sys$login:_exrc"<br>
Compilation: cc/def=(FEAT_BIG,HAVE_CONFIG_H ) /opt/prefix=all
/include=([.proto])<br>
Compiler: HP C S7.1-013 on OpenVMS IA64 V8.2-1<br>
Linking: link /exe=vim.exe *.OBJ<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>