https://github.com/cxw42/vimword
Use a subset of Vim normal-mode editing commands in Word (VBA add-in)
https://github.com/cxw42/vimword
addin addon-manager editing editor-plugin microsoft-office microsoft-word microsoft-word-addin vba vba-modules vi vim
Last synced: 7 days ago
JSON representation
Use a subset of Vim normal-mode editing commands in Word (VBA add-in)
- Host: GitHub
- URL: https://github.com/cxw42/vimword
- Owner: cxw42
- Created: 2018-04-06T18:24:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T15:14:53.000Z (about 5 years ago)
- Last Synced: 2025-03-28T03:01:43.962Z (24 days ago)
- Topics: addin, addon-manager, editing, editor-plugin, microsoft-office, microsoft-word, microsoft-word-addin, vba, vba-modules, vi, vim
- Language: VBA
- Homepage: https://vi.stackexchange.com/a/16006/1430
- Size: 3.36 MB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VimWord
Word VBA add-in permitting you to use a subset of normal-mode editing commands
in Word.## Installation
- Exit Word
- Run `Install VimWord.bat`
- Alternatively put `VimWord.dotm` in `...\Word\Startup` or load
through `Add-Ins | Manage: Word Add-ins`.
- Map a key to `VimDoCommand` (I use `Ctrl`+`;` because it's easy to type on
my keyboard.)### Mapping a key
- Right-click the Ribbon and select `Customize the Ribbon...`.
- At the bottom of the `Word Options` dialog that appears, you should
see a `Keyboard Shortcuts: Customize` button. Press it.
- In the dialog box that appears, under `Categories`, select `Macros`.
- Under `Macros`, select `VimDoCommand`.
- 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 Options` dialog, press `OK`.## Usage
- Hit the key you mapped, then enter a normal-mode command (e.g.,
`diw`). Currently, the supported operators are `d` (delete), `y` (copy),
and `v` (select). `c` (change) is also supported but doesn't do anything
other than select the text.## License
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.