Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support VIM key-bindings #177

Closed
hronro opened this issue Apr 23, 2023 · 5 comments · Fixed by #635
Closed

[Feature Request] Support VIM key-bindings #177

hronro opened this issue Apr 23, 2023 · 5 comments · Fixed by #635

Comments

@hronro
Copy link

hronro commented Apr 23, 2023

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.

@cyanzhong
Copy link
Contributor

cyanzhong commented Apr 24, 2023

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.

@cyanzhong
Copy link
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.

@cyanzhong cyanzhong changed the title Support VIM keybindings [Feature Request] Support VIM key-bindings Jun 9, 2023
@soomtong
Copy link

soomtong commented Jul 7, 2024

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 :)

@cyanzhong
Copy link
Contributor

cyanzhong commented Sep 10, 2024

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

@cyanzhong
Copy link
Contributor

Example project: https://github.com/MarkEdit-app/MarkEdit-vim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants