{"version":"2.1.281","anchor":"vim-mode-d0c0y0-and-counted-g-fixed","canonical_anchor":"vim-mode-d0c0y0-and-counted-g-fixed","heading":"Vim mode: d0, c0, y0 and counted G now work","tier":null,"area":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/vim-mode-d0c0y0-and-counted-g-fixed","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Vim mode: d0, c0, y0 and counted G now work\n\nIn vim mode, 0 after an operator now means line start so d0 works, and G jumps to line N with a count or the last line without\n\n**What**\n\nClaude Code's prompt editor has an optional vim mode, which uses the Vim editor's keyboard commands. Two of those commands now behave as in Vim.\n\n- After an operator such as `d` (delete), `c` (change) or `y` (copy), only the digits 1 to 9 start a count. `0` is treated as \"go to line start\", so `d0`, `c0` and `y0` now work. Before, `0` was taken as part of a count.\n\n- `G` now has its own handling in normal mode and after an operator. With a typed count, such as `5G`, it jumps to that line. Without one, it jumps to the start of the last line.\n\n- Claude Code now tracks whether a count was actually typed (`countTyped`), which is how `G` tells the two cases apart.\n\n**Why**\n\nThese are common Vim commands that did not work before, so people used to Vim can now use them in the prompt as expected."}