All Projects → VincentCordobes → Vim Translate

VincentCordobes / Vim Translate

Licence: mit
A tiny translate-shell wrapper for Vim

Projects that are alternatives of or similar to Vim Translate

Vim Youdao Translater
vim的有道取词翻译插件
Stars: ✭ 116 (+65.71%)
Mutual labels:  vim-plugin, translate
Google Translate Php
🌐 Free Google Translate API PHP Package. Translates totally free of charge.
Stars: ✭ 1,131 (+1515.71%)
Mutual labels:  translate
Vim Grepper
👾 Helps you win at grep.
Stars: ✭ 1,030 (+1371.43%)
Mutual labels:  vim-plugin
Vim Package Info
Vim plugin to quickly view info about the packages you use
Stars: ✭ 57 (-18.57%)
Mutual labels:  vim-plugin
Vim Codelf
(Neo)Vim plugin for searching variable names
Stars: ✭ 47 (-32.86%)
Mutual labels:  vim-plugin
Vim Systemd Syntax
Syntax highlighting for systemd service files in Vim.
Stars: ✭ 57 (-18.57%)
Mutual labels:  vim-plugin
Vim Outdated Plugins
🔄 Async Vim/Neovim plugin for showing the number of your outdated plugins
Stars: ✭ 44 (-37.14%)
Mutual labels:  vim-plugin
Shirotelin
shirotelin is Ultimate standard light colorscheme for Vim and Neovim!
Stars: ✭ 69 (-1.43%)
Mutual labels:  vim-plugin
React Intl Hooks
React hooks for internationalization without the hassle ⚛️🌍
Stars: ✭ 64 (-8.57%)
Mutual labels:  translate
Viki vim
A personal wiki for Vim
Stars: ✭ 52 (-25.71%)
Mutual labels:  vim-plugin
Bufferhint
Handy buffer switcher for Vim
Stars: ✭ 52 (-25.71%)
Mutual labels:  vim-plugin
Graphql Kr.github.io
🇰🇷 GraphQL Document in Korean
Stars: ✭ 47 (-32.86%)
Mutual labels:  translate
Tabnine
AI Code Completions
Stars: ✭ 8,863 (+12561.43%)
Mutual labels:  vim-plugin
Vim Scrollstatus
A Vim plugin to display a scrollbar in the statusline
Stars: ✭ 46 (-34.29%)
Mutual labels:  vim-plugin
Google Translator
Free Google Translator for Dart
Stars: ✭ 68 (-2.86%)
Mutual labels:  translate
Sad.vim
Quick search and replace for Vim
Stars: ✭ 44 (-37.14%)
Mutual labels:  vim-plugin
Vim Lookup
Jump to the definition of variables or functions in VimL code.
Stars: ✭ 51 (-27.14%)
Mutual labels:  vim-plugin
Vimagit
Ease your git workflow within Vim
Stars: ✭ 1,088 (+1454.29%)
Mutual labels:  vim-plugin
Tcomment vim
An extensible & universal comment vim-plugin that also handles embedded filetypes
Stars: ✭ 1,162 (+1560%)
Mutual labels:  vim-plugin
Completor.vim
Async completion framework made ease.
Stars: ✭ 1,158 (+1554.29%)
Mutual labels:  vim-plugin

vim-translate Build Status

🌎 A tiny translate-shell wrapper for Vim.

Installation

Use your favorite plugin manager. Example with vim-plug:

Plug 'VincentCordobes/vim-translate'

Make sure you've installed translate-shell

Usage

Translate the whole buffer and put it in a scratch buffer

  • :Translate [options] [source]:[targets]

Translate a visual selection and put it in a scratch buffer

  • :'<,'>TranslateVisual [options] [source]:[targets]

Translate and replace a visual selection

  • :'<,'>TranslateReplace [options] [source]:[targets]

Quit the translation buffer

  • :TranslateClear

See here to know more about options

For convenience, you can create custom key mappings:

nnoremap <silent> <leader>tt :Translate<CR>
vnoremap <silent> <leader>tt :TranslateVisual<CR>
vnoremap <silent> <leader>tr :TranslateReplace<CR>

Using motions:

nmap <leader>ts <Plug>Translate
nmap <leader>tr <Plug>TranslateReplace

Configuration

g:translate#default_languages

A dictionary of defaults source → target

let g:translate#default_languages = {
      \ 'fr': 'en',
      \ 'en': 'fr'
      \ }

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].