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]: Add vim-bindings to code editor #123

Open
paniash opened this issue Apr 10, 2021 · 8 comments
Open

[Feature request]: Add vim-bindings to code editor #123

paniash opened this issue Apr 10, 2021 · 8 comments

Comments

@paniash
Copy link
Member

paniash commented Apr 10, 2021

Hi!

Firstly, thanks a lot for making a project akin to Project Euler on problems from the scientific domain. I'm really enjoying it! I would love to see a vim-style binding support for the code editor if possible.

Thanks!

@ali-ramadhan
Copy link
Member

ali-ramadhan commented Apr 10, 2021

Hi @paniash, thanks for the feedback!

We're just using CodeMirror for the code editor and it looks like CodeMirror does have a vim mode plugin (although it's unmaintained right now): https://codemirror.net/demo/vim.html

Not sure if it's easy for a user to enable vim mode for CodeMirror but either way I was hoping to upgrade to CodeMirror version 6 (https://codemirror.net/6/) but we should look into making the code editor more customizable so that users can configure it (and enable vim mode!).

@ali-ramadhan
Copy link
Member

Looks like there's some discussion around porting the vim mode plugin to CodeMirror 6: codemirror/dev#79

@paniash
Copy link
Member Author

paniash commented Apr 10, 2021

Great! Thanks for the response. Looking forward to the update. :-)

@paniash paniash closed this as completed Apr 11, 2021
@ali-ramadhan
Copy link
Member

Ah let's leave the issue open until we have some way of adding vim mode to the editor :)

Just a side note but I remember Vimperator (http://vimperator.org/) allowing you to use Vim bindings everywhere on Firefox but it was discontinued a long time ago. They link to a list of alternatives (https://github.com/vimperator/vimperator-labs#end-of-life-and-alternatives) which might not be as powerful though, and Chrome has Vimium (https://vimium.github.io/).

@ali-ramadhan ali-ramadhan reopened this Apr 11, 2021
@paniash
Copy link
Member Author

paniash commented Apr 11, 2021

@ali-ramadhan No problem! btw Firefox has Vimium too! It goes by the name of Vimium-FF (I use it personally and it's the best so far among other alternatives that I've tried).

@ali-ramadhan
Copy link
Member

Ah nice, I should look into it! I need to get faster at vim 🙃

So I guess Vimium doesn't give you vim mode in the code editor?

@paniash
Copy link
Member Author

paniash commented Apr 11, 2021

@ali-ramadhan It honestly is a rabbit-hole haha. It's to the point where all of my programs have vim bindings. Vimium does not give vim mode in the code editor unfortunately. There is another addon for it called firenvim (it's neovim only though), but it feels too much for me personally.

@paniash
Copy link
Member Author

paniash commented Apr 16, 2021

@ali-ramadhan I came across another addon called surfingkeys which (kinda) gives vim emulation in an editor (along with the niceties of vimium ofc).

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

No branches or pull requests

2 participants