On 15 Mar 2013, at 21:58, Ben Fritz <[email protected]> wrote: > I doubt these two issues are related.
You are right. The broken mapping was just a question of a misplaced space character. Sorry for the wrong clue. > For your original issue, what mode are you in when you try to use this > autohotkey script? Insert mode. > Why do you expect it to "paste" something? Well, that's what Autohotkey does. 'Paste' must be a wrong word, though. Let's say, Autohotkey 'injects' a string. You type a hotstring followed by a trigger character and it expands it. In my case the hotstring 'excl'-Space should be expanded to ' !'. gVim stumbles at the nonbreaking space that precedes the exclamation mark and fires ':simalt ~' instead. This equals to Alt-Space which brings up the window's title bar menu, the one with 'Restore, Move, Size...' commands. I hit Escape, the script resumes and enters '!' only. > Can you still get this issue to occur? You said it only affects one instance > of Vim and the rest are fine. Yes, and this is odd. I have one gVim session with three tabs and several windows where the issue is present. Then I open another instance of gVim and it's fine. But if I open the same tabs and windows in that trouble-free new instance and save it as a session, the issue reappears. > I don't know anything at all about autohotkey so I can't debug that side. But > Vim shouldn't show the menu unless it actually gets an alt keypress, and then > it shouldn't show the menu at all if 'winaltkeys' is set to "no". After some research I was prepared to believe that one can't marry Autohotkey to gVim as far as entry of special characters is concerned because their ways of doing it were different. I thought that Autohotkey used something like 'Alt-0160' whereas gVim expected Ctrl-K-Space-Space. But it does work in a virgin session! Why, oh why? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
