• 2 Posts
  • 71 Comments
Joined 1 year ago
cake
Cake day: July 19th, 2023

help-circle
  • Superficially, typing <Ctrl>+<left> seems to be the same as typing <Esc> <b>, but these are two completely different paradigms of using the editor.

    Vim does not use shortcuts or hotkeys to edit the text, it uses a language to communicate with the editor.

    For me, shortcuts and hotkeys are rote memorization, and I’m bad at rote memorization – compare your point “5. Ctrl-{ or } does this I think”. Do I need Ctrl-left, Super-left, Alt-left, Shift-left or Ctrl-Shift-left to jump back a word?

    The vim editing language is mostly consistent and logical. I did not need to memorize it, I could learn and understand it. But that’s just me.

    Far too much examples:

    Most commands are abbreviations – a for append, b for back, c for change, d for delete, e for end of word, f for forward, g for goto (and more), hjkl are special, i for insert, m for mark, n for next, o for open line, p for paste, q for reqord macro is a strange spelling, r for replace, s for substitute, t for to, u for undo, v for visual mode, w for word, x for extinguish, y for yank, z is just a prefix for arcane stuff. Capital letters are usually variants of their minuscle counterpart – like A for append at end of line.

    Commands take a repeat count, and a lot of commands take objects/movements, and these reuse the commands, like “delete inside backticks” => di`, “yank inside brackets” => yi{, “change up to third slash” => c3t/

    If you are fluent in vim, you won’t type shortcuts while editing, you will talk to your editor.

    As for more compelling examples:

    “I’d like to change the next 2 sentences” translates to )c2)

    “Please format this paragraph.” translates to gqap

    “Swap these two characters.” translates to xp

    And I did not touch ex mode, vimscript and plugins yet.


















  • legere (lat) to read => lectura (lat) the reading event => lecture (en) => lecturer (en) a person giving/hosting a reading event.

    A lecturer is supposed to read the text of a book to students so that they are able to write it down and obtain a copy of it for themselves.

    Books written by professional scribes are incredible expensive, and this new thing they established in Bologna in 1088 – the so called “universities” offering lectures will be a major breakthrough in the history of mankind to distribute knowledge!

    Good to know some professors still honour the only true way of teaching.