23d3a02226
This has taken me almost 6 weeks :( |
||
---|---|---|
.. | ||
001-editor.mu | ||
002-typing.mu | ||
003-shortcuts.mu | ||
004-programming-environment.mu | ||
005-sandbox.mu | ||
006-sandbox-copy.mu | ||
007-sandbox-delete.mu | ||
008-sandbox-edit.mu | ||
009-sandbox-test.mu | ||
010-sandbox-trace.mu | ||
011-errors.mu | ||
012-editor-undo.mu | ||
Readme.md |
Environment for learning programming using Mu: http://akkartik.name/post/mu
Run it from the mu
directory:
$ ./mu edit
This will load all the .mu
files in this directory and then run the editor.
Press ctrl-c to quit. Press F4 to save your work (if a lesson/ directory
exists) and to run the contents of the sandbox editor on the right.
You can also run the tests for the environment:
$ ./mu test edit
You can also load the files more explicitly by enumerating them all (in order):
$ ./mu edit/*.mu
This is handy if you want to play with simpler versions of the editor that are easier to understand. Stop loading at any layer to run with a subset of features:
$ ./mu edit/001*.mu edit/002*.mu # run a simple editor rather than the full environment
Appendix: keyboard shortcuts
moving and scrolling
ctrl-a
orhome
: move cursor to start of linectrl-e
orend
: move cursor to end of linectrl-f
orpage-down
: scroll down by one pagectrl-b
orpage-up
: scroll up by one pagectrl-x
: scroll down by one linectrl-s
: scroll up by one linectrl-t
: scroll until current line is at top of screen
modifying text
ctrl-k
: delete text from cursor to end of linectrl-u
: delete text from start of line until just before cursorctrl-/
: comment/uncomment current line (using a special leader to ignore real comments https://www.reddit.com/r/vim/comments/4ootmz/_/d4ehmql)