https://github.com/ryicoh/deepl.vim
DeepL translation plugin for Vim/NeoVim.
https://github.com/ryicoh/deepl.vim
deepl nvim vim
Last synced: 4 months ago
JSON representation
DeepL translation plugin for Vim/NeoVim.
- Host: GitHub
- URL: https://github.com/ryicoh/deepl.vim
- Owner: ryicoh
- License: mit
- Created: 2022-01-09T10:42:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-21T13:31:04.000Z (5 months ago)
- Last Synced: 2026-01-22T01:30:38.375Z (5 months ago)
- Topics: deepl, nvim, vim
- Language: Vim Script
- Homepage:
- Size: 20.5 KB
- Stars: 28
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deepl.vim [](https://github.com/ryicoh/deepl.vim/actions/workflows/test.yml)
DeepL translation plugin for Vim/NeoVim.
## Demo
https://user-images.githubusercontent.com/37844673/148679023-6814c111-6ada-4279-99ea-cd29afc6a1f3.mov
## Requirements
* DeepL account (https://www.deepl.com)
* curl
## Installation
For [vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug "ryicoh/deepl.vim"
```
For [dein.vim](https://github.com/Shougo/dein.vim)
```vim
call dein#add("ryicoh/deepl.vim")
```
## Configuration
```vim
let g:deepl#endpoint = "https://api-free.deepl.com/v2/translate"
let g:deepl#auth_key = "00000000-0000-0000-0000-000000000000:fx" " or readfile(expand('~/.config/deepl.auth_key'))[0]
" replace a visual selection
vmap t call deepl#v("EN")
vmap t call deepl#v("JA")
" translate a current line and display on a new line
nmap t yypVcall deepl#v("EN")
nmap t yypVcall deepl#v("JA")
" specify the source language
" translate from FR to EN
nmap t yypVcall deepl#v("EN", "FR")
```
## License
MIT