-
Notifications
You must be signed in to change notification settings - Fork 549
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
Vim keybindings? #1361
Comments
Interesting idea. Anyone else who's been missing vim keybindings should give the issue a thumb's up. We use CodeMirror as our in-browser editor, and it looks like their vim keybindings aren't currently maintained: https://github.com/codemirror/codemirror/issues?q=is%3Aissue+is%3Aopen+label%3Avim This could be a great chance for someone who's been looking for a spot to get involved in open source. |
Ace seems to support vim bindings well. It's used on the Rust playground: https://play.rust-lang.org/. |
@mnordine that would require bringing the Ace Dart bindings up to date. It was last updated back in 2016. |
I thought I would put this here just for the interested parties, and to illustrate how nice and complete codemirror's vim support actually is... ----(below notes from testing------------------ I tried to systematically try all of the following commands, and there were Other than that ALL of the below key combos work nicely. I used the nice, rather complete, Vim cheatsheet at https://vim.rtorr.com/ as my basis Cursor movement
Tip Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines. Insert mode - inserting/appending text
THESE CONTROL SEQUENCES ARE OWNED BY BROWSER SO DO NOT WORK -------->>
----<---------------- THESE CONTROL SEQUENCES ARE OWNED BY BROWSER SO DO NOT WORK Ctrl + d - de-indent (move left) line one shiftwidth during insert mode <<<<WORKS!!!!!!!
Editing
Marking text (visual mode)
Tip Instead of b or B one can also use ( or { respectively.
Registers
Tip Registers are being stored in ~/.viminfo, and will be loaded again on next restart of vim.
Marks and positions
Tip To jump to a mark you can either use a backtick (`) or an apostrophe ('). Marks
Text Objects
Macros
Cut and paste
Indent text
Search and replace
CodeWarrior Vim ':' commands (below taken from vim.js code)
Other CodeWarrior Vim specific commands - Change the theme! :colorscheme [themename] - will display current them or let you changte it |
As titled, it would be very nice if we could have the option to choose vim keybindings (similar to interactive platforms like LeetCode, Repl.it, HackerRank).
The text was updated successfully, but these errors were encountered: