{"version":"2.1.314","anchor":"vim-word-motion-and-visual-mode-paste-fixes","canonical_anchor":"vim-word-motion-and-visual-mode-paste-fixes","heading":"Vim mode fixes for word deletes and pasting over a selection","tier":"notice","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314\/e\/vim-word-motion-and-visual-mode-paste-fixes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314","markdown":"### Vim mode fixes for word deletes and pasting over a selection\n\nIn vim mode, `dw` and `cw` handle empty lines differently, and pasting over a selection now respects whole-line copies\n\n**What**\n\nVim mode lets you edit your prompt with vim-style keys. Two kinds of editing changed:\n\n- `dw` (delete word) and `cw` (change word) now handle empty lines and line endings at the end of text differently.\n\n- Pasting over a visual-mode selection now remembers whether the copied text was whole lines, and replaces the selection to match. It also takes into account whether the selection reaches the end of a line and whether it sits on a single line.\n\n**Why**\n\nIf you edit in vim mode, these keys should now behave more like you expect at the edges of lines and when pasting whole lines.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}