On 22/10/12 18:51, Ben Fritz wrote:
On Monday, October 22, 2012 10:27:49 AM UTC-5, Axel Bender wrote:
Since some patches I experience the following behavior ([] denotes the cursor 
position, current patch level: 7.3.709):

a[a]aa   -> a
aa[]aa   -> <spc>
aa []aa  -> ^
aa []aa  -> <spc>   " Should result in "aa ^[]aa"
aa []aa  -> <esc>
aa[ ]aa  -> s       " gA shows 0x20
[]$a aa             " Should result in "aa[]$aa"

This seems to be a bug. Can anyone verify this (Windows 7 64-bit; 
MinGW64-compiled)?

I cannot reproduce on Windows XP 64-bit with the "Vim without Cream" build of 
7.3.709. I'm not 100% clear I understood your procedure however. Here is what I did:

1. gvim -N -u NONE -i NONE
2. Press a, enter text "aaaa", press <Esc> key.
3. Press 0 and then l to place the cursor on the second 'a' character.
4. Press a to enter insert mode
5. Press <Space> key to insert a space character
6. Press Shift+6 to enter a literal '^' character.
7. Press <Space> key again
8. Press <Esc> to leave insert mode
9. Verify text as expected: "aa ^ aa" with cursor on the second space character.
10. Press 's' to delete the space and go into insert mode
11. Press $ to insert a '$' character.
12. Verify text as expected: "aa ^$aa" with cursor between the $ and a 
character.


Which key(s) to press to get a ^ (spacing circumflex) depends on your keyboard layout.

On most French-language AZERTY keyboards, the key on the right of the P (as in AZERTYUIOP), when unshifted, is a dead-circumflex (and when shifted, a dead diaeresis/umlaut), so <dead-^><space> produces a spacing ^

This is also true on my Belgian keyboard (some of whose non-numeric non-alphabetic keys are other than in France) and in addition, <Alt-Gr+NoShift+6> (6 is shifted on this keyboard) also produces a spacing ^ (for details, see http://users.skynet.be/antoine.mechelynck/other/keybbe.htm )

If Axel's keyboard is of this kind, by "^" he may be meaning "dead-^" which, by itself, is not seen by Vim: Vim only sees it if it is followed by some letter which has a precombined variant with circumflex: this means space or dead-^ (either of which produces a spacing ^), any vowel, or, at least in a UTF-8 locale, the consonants c g h j s (upper- or lowercase) because ĉ ĝ ĥ ĵ ŝ (and ŭ) exist in Esperanto. If followed by something else, some keyboard drivers (as the one I had on MS-DOS) will change the dead-^ to a spacing-^ (so that "dead ^" followed by p becomes ^p), others (as the one I now have on Linux) will disregard both keystrokes and pass nothing to the keyboard input buffer…

And no, I can't reproduce what Axel shows, neither by assuming that his ^ is a dead ^ nor that it is a spacing ^. Obviously the dollar sign keypress somehow never was reflected in his email. If I hit dollar after the s keypress, and assuming a dead circumflex, I get, as expected, aa ^|aa after hitting dead-^ followed by space, and aa $|aa if I hit <esc>s$ thereafter, where | represents the left (black) side of the insert-mode cursor.


Best regards,
Tony.
--
"Here's the holiday schedule for Monday's observation of Martin Luther
King Jr.'s birthday, when the following will be closed:

        * Governmental offices
        * Post offices
        * Libraries
        * Schools
        * Banks
        * Parts of Palm Beach

and the mind of Senator Jesse Helms of North Carolina."
                -- Dennis Miller, "Saturday Night Live"

--
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

Reply via email to