Skip to content

Instantly share code, notes, and snippets.

@sarnobat
Last active March 17, 2025 21:22
Show Gist options
  • Save sarnobat/c72fd05432e801fb9a1af5c854bccf03 to your computer and use it in GitHub Desktop.
Save sarnobat/c72fd05432e801fb9a1af5c854bccf03 to your computer and use it in GitHub Desktop.
  • TODO: using the noun-verb grammar (https://irian.to/blogs/mastering-vim-grammar), systematically show the 7 different types of commands

  • TODO: 2025-03-15 - add lots and lots and lots of examples like perl (https://catonmat.net/introduction-to-perl-one-liners). Start with g// and v// commands for example; or g- commands and z- commands; combos, not individual letters like cheat sheets and manpages do, the power is in composability.

    • Instead of giving the learner rules of how perl/vim/zsh works, give examples with redundancy. That will lead the learner to reverse engineer the rules. Making them derive the rules will automatically make them internalized which is what you want. Example based learning just neural networks
    • more like the zsh draft 2: https://gist.github.com/sarnobat/e648080b72bd50012a3ccde733079c3a
    • Not a grammar. But paths in the grammar.
  • :2,10s/pick/squash/g

  • :,10s/pick/squash/g

  • ~ toggle case

Misc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment