Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 827 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 827 Bytes

Dependencies

  • A translation tool. I suggest translate-shell.
  • A player for pronunciation. Defaults to mplayer

Install

If you don't have a preferred method, I encourage you to use neobundle.vim.

NeoBundleLazy 'farseer90718/vim-translator', {
            \ 'mappings' : '<Plug>Translate'
            \ }

Usage

Create you own mappings like this in your vimrc

vmap T <Plug>Translate
vmap R <Plug>TranslateReplace
vmap P <Plug>TranslateSpeak
  • Assign g:translate_cmd to your preferred command for example ydcv, the first target language specified is used in "translate and replace".
  • Assign g:translate_player to your preferred cli stream player.

Demo

gif

License

MIT