Skip to content

vim mode: Repeat does not repeat macros #47251

@Mozartenhimer

Description

@Mozartenhimer

Reproduction steps

  1. Record any macro
  2. vim motions: q2 i HelloMacro <Esc> q
  3. Run your macro with @2
  4. Press .

Current vs. Expected behavior

In vim, pressing . will repeat the last macro run. in zed vim mode, it does not.

Zed version and system specs

Zed: v0.218.7+stable.118.41bab92dac34777ae4256e5041f7b7236fd16cdd (Zed)
OS: Linux X11 ubuntu 24.04

Attach Zed log file

No response

Relevant Zed settings

No response

Relevant Keymap

keymap.json
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
  {
    "context": "Workspace",
    "bindings": {
      // "shift shift": "file_finder::Toggle"
    }
  },
  {
    "context": "Editor && vim_mode == insert",
    "bindings": {
      // "j k": "vim::NormalBefore"
    }
  },
  {
    "context": "((vim_mode == helix_normal || vim_mode == helix_select) && !menu)",
    "bindings": {
      "alt-o": null
    }
  },
  {
    "bindings": {
      "alt-o": "editor::SwitchSourceHeader"
    }
  },
  {
    "context": "(ProjectPanel && not_editing)",
    "bindings": {
      "ctrl-d": null
    }
  },
  {
    "context": "vim_mode == literal",
    "bindings": {
      "ctrl-d": null
    }
  },
  {
    "context": "(VimControl && !menu)",
    "bindings": {
      "ctrl-d": null
    }
  },
  {
    "context": "vim_mode == insert",
    "bindings": {
      "ctrl-d": null
    }
  },
  {
    "context": "showing_completions",
    "bindings": {
      "ctrl-d": null
    }
  },
  {
    "bindings": {
      "ctrl-shift-w": null
    }
  },
  {
    "bindings": {
      "ctrl-shift-w": "workspace::ActivatePreviousPane"
    }
  },
  {
    "context": "((VimControl && !menu) || (!Editor && !Terminal))",
    "bindings": {
      "alt-l": "workspace::ActivatePaneRight"
    }
  },
  {
    "context": "((VimControl && !menu) || (!Editor && !Terminal))",
    "bindings": {
      "alt-h": "workspace::ActivatePaneLeft"
    }
  },
  {
    "context": "vim_mode == normal",
    "bindings": {
      "ctrl-a": null
    }
  },
  {
    "context": "vim_mode == visual",
    "bindings": {
      "ctrl-a": null
    }
  },
  {
    "context": "vim_mode == helix_select",
    "bindings": {
      "ctrl-a": null
    }
  },
  {
    "context": "((vim_mode == normal || vim_mode == helix_normal) && !menu)",
    "bindings": {
      "ctrl-a": null
    }
  },
  {
    "context": "vim_mode == literal",
    "bindings": {
      "ctrl-a": null
    }
  },
  {
    "context": "Editor",
    "bindings": {
      "ctrl-a": "editor::SelectAll"
    }
  }
]

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:parity/vimFeedback for Vim parity featuresfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions