1. Frank Fischer
  2. evil
Issue #275 resolved

C-[ doesn't work in macros

Lars Andersen
created an issue

C-[ is generally broken as an alternative to ESC in macro definitions, but I'll provide a specific example.

Let | denote the position of the cursor and let the buffer be:

|foo
bar

execute: qqdwipC-[Pj0q@q

expected:

foop
barp

got:

foop
p

If you run kmacro-edit-macro:

Macro:

d           ;; evil-delete
w           ;; evil-forward-word-begin
i           ;; evil-insert
p           ;; evil-paste-after
ESC P

it looks like ESC is used a prefix key resulting in an attempt to run a command which is unbound.

Comments (4)

  1. Frank Fischer repo owner

    Put 'escape in keyboard macro in ESC interception (fix #275)

    When an ESC event occurs and is translated to 'escape and a keyboard macro is being recorded, then the recording is suspended, the escape symbol is appended to the macro and then the recording is continued.

    → <<cset a73e72b1c332>>

  2. Frank Fischer repo owner

    Put 'escape in keyboard macro in ESC interception (fix #275)

    When an ESC event occurs and is translated to 'escape and a keyboard macro is being recorded, then the recording is suspended, the escape symbol is appended to the macro and then the recording is continued.

    → <<cset a73e72b1c332>>

  3. Log in to comment