Skip to content

[Feature Request] Support VIM key-bindings  #177

Closed

Description

@hronro

I appreciate the clean and focused interface of MarkEdit for editing purposes. However, as a user who is used to VIM keybindings in my workflow, I find it challenging to fully transition to MarkEdit.

Therefore, I respectfully request that you consider adding VIM keybindings functionality to MarkEdit. This addition will make your editor even more efficient for users familiar with VIM.

Additionally, there is already a plugin called codemirror-vim that implements VIM keybindings, making integration straightforward.

Activity

  1. cyanzhong commented on Apr 24, 2023

    @cyanzhong
    Contributor

    Thanks for the feedback. I actually tried the package you mentioned back in the days I started the project; it worked well.

    However, other than key bindings, it also has something to do with the UI, such as the status bar:

    image

    Playground to try it out. To have a perfect integration, we may need to rewrite this with native UI technologies (or at least test if it's good enough), and I doubt if I can achieve this flawlessly as I don't quite use VIM often (😂).

    This is still in my backlog, and I may validate the idea at some point.

  2. cyanzhong commented on Apr 26, 2023

    @cyanzhong
    Contributor

    I did an initial investigation and so far, my concern about the UI should be relatively fine. However, I noticed an annoying text rendering issue with the block cursor running on Safari: replit/codemirror-vim#118

    While this is not a dealbreaker, it is annoying for those who seek pixel-perfect products.

  3. changed the title [-]Support VIM keybindings [/-] [+][Feature Request] Support VIM key-bindings [/+] on Jun 9, 2023
  4. soomtong commented on Jul 7, 2024

    @soomtong

    it is annoying for those who seek pixel-perfect products.

    Could you please enable the use of experimental options for us? We(esp. I) would like to have access to this feature as soon as possible :)

  5. cyanzhong commented on Sep 10, 2024

    @cyanzhong
    Contributor

    I noticed it's quite easy to build a vim extension with the latest MarkEdit-api change. It's just:

    import { vim } from '@replit/codemirror-vim';
    import { MarkEdit } from 'markedit-api';
    
    MarkEdit.addExtension(vim({ status: true }));
    image
  6. cyanzhong commented on Sep 16, 2024

    @cyanzhong
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions