Git Product home page Git Product logo

vim-pegword's Introduction

Peg word memorization aid for Vim

Peg words are a mnemonic system where you associate each number to a short word, and then use these words to form stories when memorizing sequences of numbers. This plugin has a peg dictionary for numbers 0 through 99. The number 7, for instance, is represented by the sound of k, so the peg word for 7 is 'key', and for 77 is 'cake'. The sounds are compounded in this way to form all the peg words.

This plugin remaps your keys 0 through 9 in insert mode to start peg word insertion minor mode. The keys {1} through {9} will expect those many words, i.e. press {1} to input one peg word, {2} for two peg words in a row, and so on. The {0} key works like {1}, except that it then puts a . between the two numbers entered, so for instance inputting 'suit' will insert 0.1 into your text.

The plugin comes loaded with a common and popular peg word dictionary for numbers up to 99, and any peg word can be overriden on an individual basis. If you use another popular peg word dictionary, create an issue with the dictionary in the same format as the one provided.

The keys 0-9 are thus remapped to force you to practice the peg words, as that is the whole purpose of this plugin. You may also map any shortcut to deliberately start peg word mode through the command :Pegword N, where N is the number of pegwords to expect. If you don't want to give up the number keys, however, just add the following to your vimrc: let g:pegword_remap_digits = 0 (default is 1.)

Reveal hint aid

To get acquainted with the words at first, you can have the plugin hint you at the word by revealing it one letter at a time, for each Enter press. To start it, after having pressed a key from 1 to 9, input the number you want to get hinted, e.g. 71, and press Enter. The first letter will be revealed, 'c'. Press Enter again to reveal the next, 'a', and one more time to show the full word, 'cat'. Press Esc anytime to cancel this process.

vim-pegword's People

Contributors

goldfeld avatar

Stargazers

 avatar Romuald Bruno Aquinas avatar  avatar Andrew Ladouceur avatar  avatar Matthew Reishus avatar Carl Jacobsen avatar Maciej avatar

Watchers

James Cloos avatar  avatar

vim-pegword's Issues

move cursor 1 forward after insert?

just trying it out. Pretty neat.

Also: is it theoretically possible to have it automatically 'autocorrect' typed words into numbers as you go? with anything other than a 'space' as a signal to 'unautocorrect' back to the word?

If you wanted to pair program for a bit, and show me around I could finish the pull request.

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.