Word VBA add-in permitting you to use a subset of normal-mode editing commands in Word.
- Exit Word
- Run
Install VimWord.bat- Alternatively put
VimWord.dotmin...\Word\Startupor load throughAdd-Ins | Manage: Word Add-ins.
- Alternatively put
- Map a key to
VimDoCommand(I useCtrl+;because it's easy to type on my keyboard.)
- Right-click the Ribbon and select
Customize the Ribbon.... - At the bottom of the
Word Optionsdialog that appears, you should see aKeyboard Shortcuts: Customizebutton. Press it. - In the dialog box that appears, under
Categories, selectMacros. - Under
Macros, selectVimDoCommand. - Click in the box under
Press new shortcut key:. - Press the key you want to map
- In the bottom-left, click
Assign. - In the bottom-right, click
Close. - Back in the
Word Optionsdialog, pressOK.
- Hit the key you mapped, then enter a normal-mode command (e.g.,
diw). Currently, the supported operators ared(delete),y(copy), andv(select).c(change) is also supported but doesn't do anything other than select the text.
Copyright (c) 2018--2020 Christopher White. Portions Copyright (c) 2020 D3 Engineering, LLC.
Licensed CC-BY-NC-SA 4.0 or, at your option, any later version. For the avoidance of doubt, merely using VimWord at work does not automatically make the use commercial.