Skip to content

Fix support for folding in vi normal mode

This should solve the //FIXME folding that is present in the Vi emulation mode, and fixes the z family of normal mode commands.

I am not sure if these behaviors are fully congruent with what is expected of them. Someone more familiar with Vim folding should probably double-check this.

  • commandExpandLocal seems to behave as expected, Vim expects you to be on the correct line to zo a fold.
  • For the others I am less sure.

I left in some comments drawing attention to this; these should be rebased out before merging.

BUG: 482583

Edited by Quinten Kock

Merge request reports