llms.txt
Compare with other sites' llms.txt files →# VimGolf.ai
> VimGolf.ai teaches Vim by having you edit real files in a real Neovim running in the browser. 72 skills and 216 levels on an island skill map, an AI "vimbot" to race on keystrokes in every level, leaderboards and weekly challenges. The first 4 skills are free with no account; a free account unlocks the 15-skill basics zone; Premium is a one-time $10 (USD) for every skill, with no subscription.
- Website: https://vimgolf.ai/
- Try the first skill now, no account: https://vimgolf.ai/skills/1/try
- Pricing: https://vimgolf.ai/pricing
- Support: support@vimgolf.ai
## Key pages
- [Home](https://vimgolf.ai/): what VimGolf.ai is and how a level works
- [Skill map](https://vimgolf.ai/skills): all 72 Vim skills, zone by zone
- [Pricing](https://vimgolf.ai/pricing): Free, or Premium for a one-time $10
- [Weekly challenges](https://vimgolf.ai/challenges): a new editing challenge every Monday
- [Full text for assistants](https://vimgolf.ai/llms-full.txt): every skill's commands and levels, plus the FAQ
## Plans
- Free ($0): The first 4 skills, playable right now, no account; With a free account: the whole basics zone, 15 skills, and progress that sticks; Race the vimbot, climb the leaderboards; Weekly challenges
- Premium ($10 one-time, lifetime): Every zone on the skill map: all 72 skills, 216 levels; Every player's solve on every leaderboard, even the ones that beat you; Every new skill we add, forever; One-time payment. No subscription, no renewal, ever.; Everything in Free, of course
## Skills
### basics (Free)
- [Basic Movement](https://vimgolf.ai/skills/1/levels) (h, j, k, l, x): Use h, j, k, and l to move left, down, up, and right in Normal mode. x deletes the character under the cursor.
- [Counts](https://vimgolf.ai/skills/107/levels) ([count]j, [count]l, [count]x): Numbers are multipliers - and mastering this hex unlocks them everywhere. From here on, any command you know (and every one you learn next) takes a count prefix: 3j drops three lines, 5l hops five characters, 4x deletes four characters in one stroke.
- [Undo and Redo](https://vimgolf.ai/skills/4/levels) (Ctrl-r, u, U): Undo recent edits with u or revert all changes on the current line with U. Ctrl-r redoes what you just undid.
- [Insert Mode](https://vimgolf.ai/skills/5/levels) (i, Escape): Enter Insert mode with i to type text before the cursor. Press Escape to return to Normal mode.
- [Append Text](https://vimgolf.ai/skills/78/levels) (a, A): Enter Insert mode after the cursor with a or at the end of the line with A. These are fast append commands for continuing existing text.
- [Open New Lines](https://vimgolf.ai/skills/79/levels) (o, O): Open a new line below with o or above with O, then enter Insert mode. This is the quickest way to add whole lines.
- [Insert from Anchors](https://vimgolf.ai/skills/80/levels) (I, gi): Use I to insert at the first non-blank on the line. gi returns to the last insertion point and re-enters Insert mode.
- [Forward Word Jumps](https://vimgolf.ai/skills/2/levels) (w, W): Jump forward by words with w and by WORDs with W. WORD treats punctuation as part of the chunk.
- [Backward Word Jumps](https://vimgolf.ai/skills/3/levels) (b, B): Jump backward by words with b and by WORDs with B. Use them to retreat quickly without entering Insert mode.
- [Word-End Jumps](https://vimgolf.ai/skills/6/levels) (e, E): Jump to the end of the next word with e or the end of the next WORD with E. These are useful for precise edits at word endings.
- [Reverse Word Ends](https://vimgolf.ai/skills/7/levels) (ge, gE): Jump backward to the end of the previous word with ge or previous WORD with gE. This mirrors e and E in reverse.
- [Delete with Motion](https://vimgolf.ai/skills/16/levels) (d{motion}): Delete text covered by a motion using d{motion}. Combine d with movements you already know to cut exactly what you need.
- [Line Deletes](https://vimgolf.ai/skills/17/levels) (D, dd): Use D to delete from the cursor to the end of the line. dd deletes the entire current line.
- [Directional Deletes](https://vimgolf.ai/skills/36/levels) (dh, dj, dk, dl): Delete in the four basic directions by combining d with h, j, k, and l. This makes small structural deletes feel immediate.
- [Repeat Last Change](https://vimgolf.ai/skills/81/levels) (.): Repeat your last change with the dot command. It is one of Vim's strongest tools for turning one edit into many.
### Yank & Put (Premium)
- [Paste Text](https://vimgolf.ai/skills/45/levels) (p, P): Paste after the cursor with p or before it with P. Both use the current register contents.
- [Yank Line](https://vimgolf.ai/skills/46/levels) (Y, yy): Yank the current line with yy. In Neovim, Y instead yanks from the cursor to the end of the line.
- [Yank with Motion](https://vimgolf.ai/skills/47/levels) (y{motion}): Copy text covered by a motion with y{motion}. Pair it with word or line motions for precise yanks - and keep text objects in mind for later.
- [Choose Register](https://vimgolf.ai/skills/48/levels) ("{register}): Choose a specific register with "{register} before a yank, delete, change, or put. Registers let you keep multiple pieces of text around.
- [Special Registers](https://vimgolf.ai/skills/105/levels) ("0, "_): The yank register and the black hole — precise control over what you paste.
### Line Motions (Premium)
- [Paragraph Jumps](https://vimgolf.ai/skills/108/levels) (}, {): Jump by paragraph instead of by line. } leaps to the next blank-line boundary, { leaps back to the previous one - fast travel through prose or code blocks separated by blank lines.
- [Line Anchors](https://vimgolf.ai/skills/9/levels) (0, ^, $): Use 0 for the true line start, ^ for the first non-blank, and $ for the line end. These anchor your cursor to key positions on the line.
- [Find on Line](https://vimgolf.ai/skills/8/levels) (f{char}, F{char}): Find a character on the current line with f{char} forward or F{char} backward. Add a numeric count to target the nth match.
- [Till on Line](https://vimgolf.ai/skills/10/levels) (t{char}, T{char}): Jump just before a character with t{char} or just after it in reverse with T{char}. Numeric counts let you skip to later matches on the same line.
- [Repeat Find](https://vimgolf.ai/skills/11/levels) (;, ,): Repeat your last f, F, t, or T search with ;. Use , to repeat it in the opposite direction.
- [Matching Pairs](https://vimgolf.ai/skills/37/levels) (%): Jump between matching pairs like (), {}, and [] with %. It is ideal for navigating nested structures quickly.
### file navigation (Premium)
- [File Edge Jumps](https://vimgolf.ai/skills/33/levels) (G, gg): Jump to the last line with G or the first line with gg. These are the fastest whole-file line jumps.
- [Repeat Search Result](https://vimgolf.ai/skills/41/levels) (n, N): After a search, use n to go to the next match and N to go to the previous one. They reuse your last search pattern.
- [Pattern Search](https://vimgolf.ai/skills/42/levels) (/{pattern}, ?{pattern}): Search forward with /{pattern} or backward with ?{pattern}. Vim remembers the pattern so you can repeat it later.
- [Search Match Select](https://vimgolf.ai/skills/44/levels) (gn): Jump to the next match of your last search and select it with gn. One command puts the match under your cursor, ready for an instant edit.
- [Search Current Word](https://vimgolf.ai/skills/40/levels) (*, #): Search for the word under the cursor with * forward or # backward. This is the fastest way to chase repeated terms.
### Visual & Text Objects (Premium)
- [Visual Selection](https://vimgolf.ai/skills/50/levels) (v{motion}): Start characterwise Visual mode with v, then grow the selection with motions. This turns motions into editable selections.
- [Block Selection](https://vimgolf.ai/skills/51/levels) (Ctrl-v): Enter blockwise Visual mode with Ctrl-v to select rectangles of text. It is useful for column edits and repeated inserts.
- [Line Selection](https://vimgolf.ai/skills/52/levels) (V): Enter linewise Visual mode with V to select whole lines at once. It is useful when edits naturally operate on complete lines.
- [Word Text Objects](https://vimgolf.ai/skills/74/levels) (iw, aw): Use iw for the inner word and aw for the word plus surrounding space. These text objects pair naturally with operators like d and y.
- [Paragraph Text Objects](https://vimgolf.ai/skills/75/levels) (ip, ap): Use ip for the inner paragraph and ap for the paragraph plus surrounding blank lines. They help you edit whole text blocks quickly.
- [Quote Text Objects](https://vimgolf.ai/skills/76/levels) (i", a", i', a'): Use quote text objects to target inside or around quoted text. They are ideal for changing or deleting quoted content cleanly.
- [Bracket Text Objects](https://vimgolf.ai/skills/77/levels) (i(, a(, i{, a{): Use bracket and brace text objects to target inside or around grouped text. They make structural edits much safer.
- [Square Bracket Objects](https://vimgolf.ai/skills/112/levels) (i[, a[): Text objects are not just quotes and parens - i[ and a[ target the contents of (or the whole) square-bracket pair the cursor is inside.
- [Tag Objects](https://vimgolf.ai/skills/113/levels) (it, at): Editing HTML, XML or JSX? it selects inside a tag pair, at selects the whole tag including its brackets.
### Editing Operators (Premium)
- [Change with Motion](https://vimgolf.ai/skills/83/levels) (c{motion}): Change text covered by a motion with c{motion}. Vim deletes the target and drops you into Insert mode.
- [Line Changes](https://vimgolf.ai/skills/85/levels) (cc, C): Use cc to change the entire current line or C to change from the cursor to the end of the line. Both end in Insert mode.
- [Substitute Text](https://vimgolf.ai/skills/86/levels) (s, S): Use s to substitute the character under the cursor or S to substitute the whole line. Both commands enter Insert mode immediately.
- [Increment and Decrement](https://vimgolf.ai/skills/103/levels) (Ctrl-a, Ctrl-x): Nudge the number under the cursor up or down without retyping it.
- [Replace Character](https://vimgolf.ai/skills/87/levels) (r{char}): Replace the character under the cursor with r{char} without entering Insert mode. It is perfect for small corrections.
- [Replace Mode](https://vimgolf.ai/skills/88/levels) (R): Enter Replace mode with R to overwrite existing text as you type. Press Escape to leave Replace mode.
### case operations (Premium)
- [Toggle Case](https://vimgolf.ai/skills/91/levels) (~): Toggle the case of the character under the cursor with ~. In Visual mode it toggles the selected text.
- [Change Case with Motion](https://vimgolf.ai/skills/92/levels) (gu{motion}, gU{motion}): Lowercase text with gu{motion} or uppercase it with gU{motion}. Motions let you target exactly the span you want.
- [Change Case by Line](https://vimgolf.ai/skills/93/levels) (guu, gUU): Lowercase the current line with guu or uppercase it with gUU. These are linewise versions of the case operators.
### Find and Replace (Premium)
- [Replace Across File](https://vimgolf.ai/skills/100/levels) (:%s/{old}/{new}/g): Run a global substitution across the whole file with :%s/{old}/{new}/g. It replaces every match of the pattern.
- [Confirmed Replace](https://vimgolf.ai/skills/101/levels) (:s/{old}/{new}/gc, :s/{old}/{new}/g): Run substitution on the current line with confirmation using :s/{old}/{new}/gc. Vim asks before each replacement.
- [Replace in Visual Selection](https://vimgolf.ai/skills/102/levels) (:'<,'>s/{old}/{new}/g): Substitute across the current Visual selection with :<,>s/{old}/{new}/g. This scopes replacements to the selected range.
- [Global Commands](https://vimgolf.ai/skills/104/levels) (:g/{pattern}/d): Apply a command to every line matching a pattern in one stroke.
- [Line Surgery](https://vimgolf.ai/skills/110/levels) (:m{address}, :t{address}): Move or copy a line to anywhere else in the file with a single Ex command: :m{address} relocates it, :t{address} duplicates it. No yank-and-paste dance required.
- [Sorting](https://vimgolf.ai/skills/111/levels) (:sort, :sort{flags}): Sort lines with :sort, and reach for flags like u (unique) or n (numeric) when a plain alphabetical sort is not enough.
### Macros (Premium)
- [Record and Replay Macros](https://vimgolf.ai/skills/89/levels) (q{register}q, @{register}, @@): Record a macro into a register with q{register}...q, then replay it with @{register} or repeat the last macro with @@. Macros automate repeated edit sequences.
- [Replay Ex Command](https://vimgolf.ai/skills/114/levels) (@:): Repeat the last Ex command without retyping it. Run one :m+1, then @: fires it again - and again - anywhere in the file.
### Indent & Join (Premium)
- [Indent and Dedent](https://vimgolf.ai/skills/62/levels) (>>, <<): Indent lines with >> and dedent them with <<. Counts or motions can expand these commands to larger ranges.
- [Reindent Text](https://vimgolf.ai/skills/63/levels) (={motion}, ==): Reindent text with = using a motion, or fix the current line with ==. Vim applies its indentation rules for you.
- [Join Lines](https://vimgolf.ai/skills/64/levels) (J): Join the next line onto the current one with J. Counts let you join multiple lines in a single command.
- [Create Fold](https://vimgolf.ai/skills/72/levels) (zf{motion}): Create a fold from a motion with zf{motion}. It lets you collapse a precisely chosen span of text.
- [Open and Close Folds](https://vimgolf.ai/skills/73/levels) (zo, zc): Open a fold with zo or close it with zc. These commands let you inspect and hide folded text without changing the fold itself.
### Views & Windows (Premium)
- [Move Between Splits](https://vimgolf.ai/skills/97/levels) (Ctrl-wh, Ctrl-wj, Ctrl-wk, Ctrl-wl): Move between split windows with Ctrl-w plus a direction key. This lets you navigate multi-pane layouts without leaving Normal mode.
- [Create Splits](https://vimgolf.ai/skills/98/levels) (Ctrl-ws, Ctrl-wv): Create a horizontal split with Ctrl-w s or a vertical split with Ctrl-w v. Splits let you edit multiple views at once.
- [Tidy Split Layout](https://vimgolf.ai/skills/99/levels) (Ctrl-wo, Ctrl-w=): Use Ctrl-w o to keep only the current window or Ctrl-w = to equalize split sizes. These commands tidy multi-window layouts quickly.
- [Full-Page Scrolling](https://vimgolf.ai/skills/94/levels) (Ctrl-f, Ctrl-b): Move forward a full page with Ctrl-f or backward with Ctrl-b. These are large viewport jumps for fast reading.
- [Half-Page Scrolling](https://vimgolf.ai/skills/95/levels) (Ctrl-d, Ctrl-u): Move down half a page with Ctrl-d or up half a page with Ctrl-u. They are great for scanning while keeping context.
- [Recenter the View](https://vimgolf.ai/skills/96/levels) (zz, zt, zb): Recenter the cursor line with zz, move it to the top with zt, or to the bottom with zb. These commands control where the current line sits in the window.
- [Screen Jumps](https://vimgolf.ai/skills/109/levels) (H, M, L): Move the cursor to a fixed position on the visible screen without scrolling: H to the top line, M to the middle, L to the bottom. Pairs naturally with the scrolling commands.
### Mark & Return (Premium)
- [Marks and Return](https://vimgolf.ai/skills/69/levels) (m{mark}, '{mark}, `{mark}): Set a mark with m{mark}, then jump back to its line with '{mark} or exact cursor position with `{mark}. Marks make long-distance navigation reversible.
- [Jump Back](https://vimgolf.ai/skills/71/levels) ('', ``): Use '' to jump back to the previous line position and `` to return to the exact previous cursor spot. These are quick return commands after big jumps.
- [Jumplist Jumps](https://vimgolf.ai/skills/106/levels) (Ctrl-o, Ctrl-i): Retrace your steps through the places you have jumped.
## FAQ
- **What is VimGolf.ai?** VimGolf.ai teaches Vim by having you edit real files in a real Neovim running in your browser. Each level gives you a start file and a target file, you edit one into the other, and the keystrokes you use are your score. The skill map takes you from h, j, k and l to text objects, registers, macros and windows: 72 skills and 216 levels.
- **Do I need to install Vim or Neovim?** No. Every level runs in a real Neovim session in your browser, so there is nothing to install or configure. The first 4 skills work without an account.
- **Is VimGolf.ai free?** Yes, to start. The first 4 skills are playable with no account, a free account unlocks the whole basics zone (15 skills) and saves your progress, and racing the vimbot, the leaderboards and the weekly challenges are free. Premium is a one-time $10 for the rest of the map.
- **How much does VimGolf.ai Premium cost?** $10, once, plus any applicable tax. It unlocks every zone on the skill map (all 72 skills and 216 levels), every skill added later, and every player's solution on every leaderboard. There is no subscription and nothing renews.
- **What is the vimbot?** The vimbot is your opponent in every level: a solution found by an AI solver and checked in a real Neovim, replayed beside you in its own terminal. Your goal is to match or beat its keystroke count.
- **How is a level scored?** Every key you press counts, including the : and Enter of :w. Fewer keystrokes is better, and the same rule scores you, the vimbot and every other player.
- **What are the weekly challenges?** Every Monday a new challenge is published: a short, realistic editing task with a vimbot score to beat and its own leaderboard.
- **Will this help with Vim mode in other editors and tools?** Yes. The motions, operators and text objects you practise here are the ones Vim modes are built on, in VS Code, JetBrains IDEs, Claude Code and Codex CLI as well as in Vim and Neovim themselves.
## Optional
- [Legal & contact](https://vimgolf.ai/legal)
- [Terms of Service](https://vimgolf.ai/terms-of-service)
- [Privacy Policy](https://vimgolf.ai/privacy-policy)