trans.vim : Easier translation in vim
script karma |
Rating 1/1,
Downloaded by 2052 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Rykka f |
|
script type |
utility |
|
description |
:Title: trans.vim
:Author: Rykka
:Version: 1.0
:Github: https://github.com/Rykka/trans.vim
:Update: 2013-01-10
=========
Trans.vim
=========
**Trans.vim** makes translation in vim easier::
使得翻译在vim容易。
vim内で翻訳が容易になります。
rend la traduction dans vim facile.
macht die Übersetzung in vim einfacher.
...
Usage
-----
``:Trans``
Translate word.
``:Trans hello`` will echo ``你好`` and set register ``@"`` to 你好
``<leader>tt`` will translate word under cursor or current visual selection.
``:TransTo``
Translate word with input lang code.
``<leader>to`` will translate to lang code with word under cursor or current visual selection.
``:TransPo``
Translate po file
When in a po buffer, ``:TransPo`` will fill all empty msgstr with translated msgid.
if the msg is::
msgid "show all"
msgstr ""
it will be translate to::
msgid "show all"
msgstr "全部显示"
|
|
install details |
Installation
------------
Requirment:
- Vim compiled with python. (or webapi.vim_)
Install:
- Vundle_:
In your Vimrc::
Bundle 'Rykka/trans.vim'
" for no python version
" Bundle 'mattn/webapi-vim'
Then use ``:BundleInstall`` to install.
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.85
|