Vim Tutor

MutablesEducation & Research

Run Vim keys on your own text and see what they do, in a real Vim engine. Ask how to do something in Vim, or paste a few lines and ask which keys would change them: Vim Tutor runs the keys and shows the text before and after. In ChatGPT the result opens in an editor you can type in, checked as you go; elsewhere it comes back as text. What you can do: - Try keys on your own text: paste lines and the keys, see the result before you touch your file, then press the keys yourself. - Practise: five short exercises on a group of commands, such as w, b and e, f and t, or the dot command, each checked when you finish. - How-tos: the answer to common tasks (exit Vim, find and replace, delete lines, record a macro) with a short exercise to try it, or a round of pressing the keys from memory where an editor can't run them. - Daily golf: today's hole, turning one text into another in as few keys as you can. It never gives away a solution. - Look up commands: a cheat sheet of the keys for a task, with a one-line description of each. On phones, the editor opens full screen with a keypad of the keys you need. Every answer also comes as plain text, with one link to the matching page on vimninja.com, the Vim course behind Vim Tutor. Who it is for: people learning Vim, and people who use Vim keys in Neovim, VS Code, JetBrains IDEs or Zed. Limitations: the engine covers Vim's Normal, Insert, Visual and command-line modes, text objects, registers and macros, plus the surround and commentary plugins. It does not run windows, tabs, buffers, folds, your vimrc or other plugins, and says so instead of guessing. It shows what keys do to text; it does not edit your files. Text you paste is used only to run the keys and is not stored.

No reviews yet

Open in ChatGPTWebsite
Period

Where it stands

Countries

Starter prompts

  • How do I exit Vim and save my changes?
  • What do the Vim keys dt( do to this line: print(total)
  • Give me a short exercise to practise the w, b and e motions in Vim.