Skip to content

Conversation

@MindfulLearner
Copy link

@MindfulLearner MindfulLearner commented Oct 23, 2025

( WIP )

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

What

Adding Vim Motion for Playground

Why

Some users might be using Vim, so it could be helpful for them

How

Looking for Idea for now monaco-vim pkg

Remarks

Initial idea is to use https://github.com/brijeshb42/monaco-vim, but I'm having issues with Insert Mode brijeshb42/monaco-vim#150

Implementation milestones

  • save function working
  • make Insert Mode work
  • add ON/OFF switch for Vim Mode
  • Relative number

Question

Could there potentially be a conflict between https://github.com/Effect-TS/monaco-editor and monaco-vim?

UPDATE BY SO FAR

  • I can move h j k l in normal mode
  • I can go visual mode
  • I can save with :w
  • I can see status bar

I CANNOT

  • I cannot i o a enter insert mode

DEMO

Screen.Recording.2025-10-23.at.14.20.15.mov

@vercel
Copy link

vercel bot commented Oct 23, 2025

@MindfulLearner is attempting to deploy a commit to the Effect Team on Vercel.

A member of the Team first needs to authorize it.

@MindfulLearner MindfulLearner marked this pull request as draft October 23, 2025 03:32
@MindfulLearner
Copy link
Author

MindfulLearner commented Oct 23, 2025

@IMax153 Hello, I’ve seen you working with the Monaco Editor. I tried to implement Vim motions maybe you’ve already tried that?

Could be helpful to get some insight

@IMax153
Copy link
Member

IMax153 commented Oct 24, 2025

Hey @MindfulLearner ! Thank you for kicking this off! Another welcome addition would probably be a button somewhere which controls whether or not Vim mode is even possible, as folks who don't know Vim bindings will probably get themselves stuck in command mode and get frustrated.

Will take a deeper look at this once more functionality in the TODOS you've listed is implemented!

Let me know if you need any help, and thanks again for the contribution!

@MindfulLearner
Copy link
Author

MindfulLearner commented Nov 10, 2025

@IMax153

Hey @MindfulLearner ! Thank you for kicking this off! Another welcome addition would probably be a button somewhere which controls whether or not Vim mode is even possible, as folks who don't know Vim bindings will probably get themselves stuck in command mode and get frustrated.

Will take a deeper look at this once more functionality in the TODOS you've listed is implemented!

Let me know if you need any help, and thanks again for the contribution!

I still have this problem:

Initial idea is to use https://github.com/brijeshb42/monaco-vim, but I'm having issues with Insert Mode brijeshb42/monaco-vim#150

Could it be that there’s a conflict with the forked version Effect-TS/monaco-vim?

I’ve debugged it the keys for insert mode like i and a are actually being detected, but they don’t switch to insert mode.

I'll try again these days.

@IMax153
Copy link
Member

IMax153 commented Nov 10, 2025

@MindfulLearner - it's possible. But I have no idea to be honest. And unfortunately I won't have the ability to look into this in the near future due to competing priorities.

When v4 is out and we redesign the website, I'm going to look into modern-monaco as an alternative to the current setup.

@MindfulLearner
Copy link
Author

@IMax153 When the website will be updated to v4? Would be nice to help with that later on!

@IMax153
Copy link
Member

IMax153 commented Nov 10, 2025

After v4 is released. No timeline on that yet tho.

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 this pull request may close these issues.

2 participants