Translate Vim : Translate text directly in vim from the google translate page.
| script karma
Downloaded by 748
Comments, bugs, improvements
script versions (upload new version)
|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:
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.
|Extract the plugin files in your ~/.vim (*nix) or ~/vimfiles (Windows).
Click on the package to download.
ip used for rating: 188.8.131.52