Coder Social home page Coder Social logo

cxw42 / vimword Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 3.45 MB

Use a subset of Vim normal-mode editing commands in Word (VBA add-in)

Home Page: https://vi.stackexchange.com/a/16006/1430

Batchfile 1.75% Shell 4.07% Perl 7.81% Makefile 0.06% VBA 86.31%
vi vim microsoft-word vba vba-modules microsoft-office microsoft-word-addin addin addon-manager editing

vimword's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.