Skip to content

Instantly share code, notes, and snippets.

@mre
Created June 24, 2013 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mre/5848964 to your computer and use it in GitHub Desktop.
Save mre/5848964 to your computer and use it in GitHub Desktop.
Mac Vim text to speech. Put this into your vimrc and hit <leader>v in visual selection mode to read the selected text. Great for proof reading. ;-)
" Mac specific: Text-to-speech on selected text in visual mode
" w: Don't replace selection with command output after execution
" silent: Don't prompt for enter after execution
:vnoremap <leader>v :w<Home>silent <End> !say <CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment