Skip to content

Support Vim fold keybindings (zo, zc, za, zf, zd, zR, zM) in the code editor #9748

@narley

Description

@narley

Summary

Feature request to add Vim fold keybindings to Warp's code editor, enabling users to collapse and expand code sections using standard Vim fold commands.

Problem

Warp's code editor Vim mode does not support any fold-related keybindings. Users who rely on folds to manage code visibility in Vim/Neovim must work around the absence by scrolling or other means, breaking their established editing workflow. This is a frequent friction point rather than a rare inconvenience.

Reproduction steps or desired workflow

  1. Open a file in Warp's code editor with Vim keybindings enabled.
  2. Navigate to a block of code (function, class, or region).
  3. Use zf with a motion or visual selection to create a fold.
  4. Use zo / zc / za to open, close, or toggle individual folds.
  5. Use zR / zM to open or close all folds in the buffer.
  6. Use zd to delete a fold.

Artifacts

None attached.

Warp version

Unknown

Operating system

macOS

Metadata

Metadata

Assignees

Labels

area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.area:settings-keybindingsSettings UI, preferences, keybindings, and keyboard-shortcut management.enhancementNew feature or request.ready-to-specThe issue is ready for a product and technical spec.repro:highThe report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions