Why Freecodecamp dont have VIM Mode?

Almost every website has it. Hackerrank,codewars and etc. Why not here?

4 Likes

freeCodeCamp uses an open source code editor called Monaco. It works the same way that most modern text editors and IDEs do. freeCodeCamp is designed to teach beginners and although many people are used to vim and continue to use it, it isn’t the most beginner-friendly input style. If you want to, you are welcome to work on your solutions in vim and copy your solutions into freeCodeCamp.

2 Likes

“modern” doesn’t always mean the best tool for the job. Yes, “modern” text editors (misnomer, as they are more suited for writing than actual editing) are great to introduce people to coding… but then so is vim and all you would need to tell someone is to press i for insert, and use either the mouse or arrow keys to move. It’s not difficult, it just looks like too many people have drunk the vscode/sublime/atom kool-aid.

FCC uses Monaco which is the underlying engine(?) for vscode, which has a plugin for neovim. Use that plugin on the backend, give people the simple instructions if they want to use it, and I’ll start donating every month.

Alternatively there is a simple vim mode plugin for vscode which wouldn’t need any intervention on the user’s behalf, except to press a button, a la Codewars etc.

“Those that prefer convenience over vim/emacs deserve neither” (Abe Lincoln or something)

1 Like

vscode/submlime/atom are not “text” editors, they are “code” editors. They are well suited to writing code and provide a lot of features to speed up that process. There is no kool-aid to drink here, they do a fantastic job at what they are designed to do. And this is coming from a guy who used emacs almost exclusively for about 15 years (and still does from time to time for quick edits).

But I don’t think FCC’s primary focus is on teaching people how to use a code editor.

2 Likes

Thank you for wanting to make FCC better. Feature requests can be done as GitHub Issues. Whenever opening an issue, please check first that there isn’t already a similar one and provide as much detail as possible.

1 Like

Can you tell me what the difference between code and text is, in context?

As stated the software you mention is better suited to writing than editing if you compare them to a modal editor. You should know from using emacs the differences. I wonder if vim/emacs and their offshoots plus plugins have gotten way better in the time you started using gui text writers?

You don’t think it’s their primary focus, but nor is it CodeWars’, HackerRank’s and other sites that have a vim mode for those that want to use it.

EDIT due to original text being flagged.

I’ve had a look at the repo and have had some ideas, but it might take me some time to come up with something. Monaco !== vscode, so it might need a bit more than just shoehorning the neovim plugin into it (in fact I don’t think that can be done, unless someone knows different?)

I agree, vim keybindings are wonderful and it’s nice to code with the functionality of vim. This would be a good feature!!

1 Like

Please do not repeat a flagged post. All flag posts are reviewed by moderators.

I’ve no idea what you are talking about, but I imagine a code editor as a minimum could have syntax highlighting or something like that…