Translate Vim : Translate text directly in vim from the google translate page.
script karma |
Rating 4/3,
Downloaded by 986 |
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).
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.145.116.193
|