Giter Site home page Giter Site logo

vimspeak's Introduction

vimspeak

vimspeak is a plugin for connecting vim to espeak. It overrides the default behavior of the s and S keybindings. The former, when combined with a motion, will read the implicated text aloud - for example, s} will read the next paragraph, sw will read the next word, and ss will read the current line.

The S key is a prefix which can be combined with other keys to do more specific actions:

  • St: toggle vimspeak off or on (default: on)
  • Sc: cancel the current reading
  • Sl: read out the current line number
  • Ss: adjust the speed of speech (default: 300)
  • Sp: toggle punctuation (default: on)
  • Sb: read the name of the current buffer

There are also some autocmds set up, which will read the name of the current buffer whenever it changes, let you know when the file was written, and read out the working directory when it changes.

Settings

vimspeak reads a few global variables to adjust its behavior:

g:vimspeak_args: arguments passed to espeak (default: -k30)

g:vimspeak_speed: arguments passed to espeak (default: -s 300)

g:vimspeak_punct: arguments passed to espeak (default: --punct)

g:vimspeak_enabled: set to 1 to enable vimspeak, or 0 otherwise (default 1)

TODO

  • Handle a bunch more autocmds
    • SwapExists
    • FileChangedShell{,Post}
    • CmdUndefined rigging
    • Cmdline{Changed,Enter}
    • more?
  • key echo (requires vim patch)

vimspeak's People

Contributors

ddevault avatar

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.