playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
156 stars 28 forks source link

Add option to switch to VIM mode in Code Editor #527

Open yaustar opened 3 years ago

yaustar commented 3 years ago

Forum: https://forum.playcanvas.com/t/code-folding-shortcut/21758

Code Mirror support: https://codemirror.net/demo/vim.html

As it hasn't got an active maintainer, we need to be think about whether it is worth adding this

willeastcott commented 3 years ago

TBH, I would rather not invest more time in CodeMirror and instead switch to Monaco. Just my 2p.

yaustar commented 3 years ago

I was thinking that too. After using GitHub's workspace tool, I would love to have something like that instead of Code Mirror

Maksims commented 3 years ago

Code Editor needs love and more treats as it is most environment devs spend time in, and it should not reduce their coding experience much from native solutions like VS. Monaco looks very mature and developed and has probably more robust features for code completion, styling, etc.

There are probably VIM users, but it is a very very niche audience.

fromwithin commented 3 years ago

There are probably VIM users, but it is a very very niche audience.

You need to step out of your own little bubble there.

https://www.zdnet.com/article/what-are-developers-like-stack-overflows-survey-provides-an-overview/

Stack Overflow's survey had 25.9% of web developers using vim. Not exactly "very very niche" is it?

Maksims commented 3 years ago

There are probably VIM users, but it is a very very niche audience.

You need to step out of your own little bubble there.

https://www.zdnet.com/article/what-are-developers-like-stack-overflows-survey-provides-an-overview/

Stack Overflow's survey had 25.9% of web developers using vim. Not exactly "very very niche" is it?

I'm sorry, but not sure where "Web Developers" came from, as looking into the article, it clearly states:

Front-end web developers like Sublime Text best while DevOps and SysAdmins go for Vim.

Also, if you go to the source link in this article, the actual Vim % is lower: 15.2%. And mostly prefered by Dev Ops and Sys Admins (as stated in the link above). And the reason for that is the availability of Vim on Linux systems.

If we look at Google Trends and calculate the index of collective popularity by that, then globally Vim is very very slim: around 0.87% of search across IDEs.

Looking at other engines and their support of Vim, even across native engines, there is some community effort, but it seems to be very small. Vim is very niche for WebGL and Game Developers IMHO.

willeastcott commented 3 years ago

I'd probably also add that that article is over 6 years old. Visual Studio Code, for example, was released after it was published. 😄

fromwithin commented 3 years ago

Bah. I posted the wrong link. It was supposed to be this one:

https://insights.stackoverflow.com/survey/2019#development-environments-and-tools

Actually, I've just found the 2021 version:

https://insights.stackoverflow.com/survey/2021#technology-most-popular-technologies

It's got Vim at 24.19% overall and slightly higher for professional developers at 24.82% from 82,277 responses.

ki11roy commented 3 years ago

@fromwithin NeoVim is Vim too, so add 4.99% and Vim plugin is on the 7th place among the top downloads in IDEA plugins. image

VSCode Vim mode, 9.4k stars - https://github.com/VSCodeVim/Vim

Maksims commented 3 years ago

This is good % stats, but it is global stats for every IDE user out there, which covers all various industries.

I've looked for more filtered stats, but couldn't find it. Would be great to know how many front-end JavaScript devs use Vim as the main IDE.

yaustar commented 2 years ago

Now that we are on Monaco, it should be easier to add bindings.

There's one for Vim and Emacs from a quick look:

https://github.com/brijeshb42/monaco-vim https://github.com/brijeshb42/monaco-emacs