sponsor Vim development Vim logo Vim Book Ad

Translate Vim : Translate text directly in vim from the google translate page.

 script karma  Rating 0/2, Downloaded by 810  Comments, bugs, improvements  Vim wiki

created by
sr_x sr_x
 
script type
utility
 
description
The Google_Translate_Py it is very usefully if you need to translate text inside vim.
It helps to improve your editing time without leaving vim.
Only select the text and press the key combination \tt for your translation in whatever language google translate support.
Try it, is very ease, simple and powerfully.

It is based in the python API:

https://github.com/mouuff/Google-Translate-API

Please, the default languages are English (en) - Spanish (es)

To use another language [e.g. Italy (it)-German (de)] it is necessary to define the variables :

let g:google_translate_from_lang = "it"
let g:google_translate_to_lang = "de"


To change default shortcut keys ( \tt ) use in your vimrc:

map <Leader>pp <esc>:call g:TranslateGoogle()<cr>

to \pp for example.

 
install details
Extract the plugin files in your ~/.vim (*nix) or ~/vimfiles (Windows).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Google_Translate_Py.tar.gz 2.0.0 2022-09-24 9.0 sr_x sr_x Updated to vim 9, and python3.
Google_Translate_Py.tar.gz 1.0 2016-04-22 7.0 sr_x sr_x Initial upload
ip used for rating: 3.146.105.194

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github