Skip to content

vim: PageUp, PageDown, ScrollUp, ScrollDown should not be added to the jumplist. #29431

Closed
@B4rc1

Description

@B4rc1

Summary

Right now the vim PageUp, PageDown, ScrollUp, ScrollDown actions add entries to the jumplist, causing C-o and C-i to go through them when used. This is different from neovim and breaks my workflow since I mainly use these to navigate up and down, polluting the jumplist with useless jumps.

Description

Steps to reproduce:

  1. Open any sufficiently large file (with at least two pages worth of text)
  2. Enable vim mode.
  3. Press C-d twice (to demonstrate different behavior from neovim). The Editor goes one page down twice.
  4. Press C-o once.

Expected Behavior: You should be at the start of the file since the opening of the file should be the only thing in the jumplist. This is the behavior of neovim.
Actual Behavior: You are at the middle jump one page down from the start. You can press C-o again to go to the start of the file.

Zed Version and System Specs

Zed: v0.181.8 (Zed)
OS: Linux X11 nixos 24.11
Memory: 31.3 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3050 || NVIDIA || 565.77

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[core label]vim

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions