Skip to content

Vim: visual block 'o' behaves incorrectly with up/down motions #27385

Closed
@qgates

Description

@qgates

Summary

Visual block mode doesn't behave as vim when using 'o' (move cursor to [o]ther end). Vim moves the cursor to the beginning of the selection allowing use of up/down motions to vertically expand/contract the block selection.

Steps to trigger the problem:

  1. In a block of text lines, enter visual block mode on line 3+
  2. Draw a selection with vim motions
  3. Press 'o'.
  4. Use jk vim motions to grow/shrink the block selection at the top left

Actual Behavior:

Due to zed's multicursor implementation, behaviour isn't as expected, jk resets the block to the RHS column and grows/shrinks the column.

Expected Behavior:

As vim, jk should make the block selection grow/shrink at the top edge.

Zed Version and System Specs

Zed: v0.178.5 (Zed)
OS: Windows 10.0.19045
Memory: 31.8 GiB
Architecture: x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions