Copy (yank) to the next word in Vim
In Vim, press Y W on Mac, Windows, Linux. Works when: normal mode.
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=deleteInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'return
ShiftZXCVBNM,./Shift↑
fnctrloptcmdcmdopt←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlWinAltAltWinMenuCtrl←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlSuperAltAltSuperMenuCtrl←↓→
See it happen Press the shortcut above, or
More Vim shortcuts: editing
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Undo | U | U | U |
| Redo | CtrlR | CtrlR | CtrlR |
| Delete the character under the cursor | X | X | X |
| Delete (cut) the line | D,D | D,D | D,D |
| Delete to the end of the line | ShiftD | ShiftD | ShiftD |
| Delete to the start of the next word | D,W | D,W | D,W |
| Change (replace) the word | C,W | C,W | C,W |
| Change the whole line | C,C | C,C | C,C |
| Change to the end of the line | ShiftC | ShiftC | ShiftC |
| Delete the character and insert | S | S | S |