Tuesday, July 30, 2013

Vim and Control Characters in Mappings

I have mailed Mr. Bram Moolenaar, the author of Vim, about this, to no avail. Perhaps someone else has experienced the same issue. On to the subject:

It’s somehow impossible to use the character 0x1e (RS, Record Separator, etc.) on the right side of a mapping. An example:

    map ;r /^^/e+1^M

(where “^^” is the literal control character 0x1e, nothing else.)

The 0x1e character seems to disappear completely, so that the /^^/e+1^M will become //e+1^M when it gets executed. It does however show up normally when you type ‘map’. Very weird indeed. This bug has existed since version 6.0 (I have compiled every version back to 5.8). And in the latest version from Mercurial, 0x1c and 0x1d won’t work as well. What’s happening here?

I should add that Bram isn’t very helpful, having a generally snotty attitude. Too bad.

Monday, July 22, 2013

Emacs

I’ve been using Emacs a bit lately. I’ve primarily been using Vi or Vim throughout the years, but due to a quirk/bug in Vim regarding the use of certain control characters on the right side of a mapping, I have recently given Emacs a try. It’s actually a pretty nice editor, once you trim the bells and whistles down to a minimum.

I’ve read many articles about the so called “Emacs Pinky” on the net. It seems most Emacs users use only the left Control key. Then I’m not surprised that the left pinky finger gets strained after a while. Proper typing involves using the right Control key as well, but it seems very few people are aware of this. I have so far no problems whatsoever, since I use both Control keys.

Wednesday, July 10, 2013

Stack Overflow Moderator “animuson”

A moderator who calls himself “animuson” on Stack Overflow doesn’t want to face the truth. He has deleted all my postings regarding Python regular expression matching being extremely slow compared to Perl. Additionally my account has been suspended for 7 days. Such a dickwad.

Thursday, July 4, 2013