{"version":"2.1.282","anchor":"vim-mode-linewise-commands-use-logical-lines-not-wrapped-s","canonical_anchor":"vim-mode-linewise-commands-use-logical-lines-not-wrapped-s","heading":"Vim mode line commands act on the real line when a long prompt wraps","tier":"notice","area":"Terminal UI","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/vim-mode-linewise-commands-use-logical-lines-not-wrapped-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Vim mode line commands act on the real line when a long prompt wraps\n\nIn vim mode, commands such as dd, p, o and >> now act on the actual line of text rather than the wrapped screen row\n\n**Unclear.** How the new join for `J` in visual mode differs from the old one is not confirmed.\n\n**What**\n\nVim mode lets you edit your prompt with vim-style keys. Commands that work on whole lines now find the line from its position in the text instead of from where it appears on screen. This covers:\n\n- `p` and `P` for pasting whole lines\n\n- `>>` and `<<` for indenting\n\n- `o` and `O` for opening a new line\n\n- `dd` for deleting a line\n\nOther changes:\n\n- After `dd` or a whole-line paste, the cursor moves to the first character that is not a space.\n\n- `J` in visual mode joins lines in a new way.\n\n- `.` (repeat last change) now accepts a count, such as `3.`, which replaces the original count.\n\n- Indenting the last line with a count greater than 1 does nothing.\n\n- In NORMAL mode, the cursor stays within the text when an earlier or queued message is brought back into the input.\n\n**Why**\n\nWhen a long line wrapped onto several screen rows, these commands could act on the wrong line.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}