FollieHiyuki-dotfiles/nvim-old/plug-config/translate-shell.vim
FollieHiyuki 01ff68ac92
Add glow config
Also deprecate neovim config.
2021-07-03 02:52:03 +03:00

29 lines
951 B
VimL

" Basics
let g:trans_join_lines = 1
let g:trans_win_height = 15
" Directions
" let g:trans_interactive_full_list = 1
let g:trans_default_direction = ":ja"
let g:trans_directions_list = [
\ ['', 'en'],
\ ['', 'ja'],
\ ['', 'de'],
\ ['', 'ru'],
\ ['', 'fr'],
\ ['', 'nl'],
\ ['', 'la'],
\ ['', 'es'],
\ ['', 'zh-CN'],
\ ['', 'zh-TW'],
\ ]
nnoremap <silent> <leader>jt :Trans<CR>
vnoremap <silent> <leader>jt :Trans<CR>
nnoremap <silent> <leader>jd :TransSelectDirection<CR>
vnoremap <silent> <leader>jd :TransSelectDirection<CR>
nnoremap <silent> <leader>jr cw<C-R>=system('trans -brief -no-ansi', getreg(""))[:-2]<CR>
vnoremap <silent> <leader>jr c<C-R>=system('trans -brief -no-ansi', getreg(""))[:-2]<CR>
nnoremap <silent> <leader>jc cw<C-R>=system('trans -brief -no-ansi :', getreg(""))[:-2]<S-Left><S-Left><Right>
vnoremap <silent> <leader>jc c<C-R>=system('trans -brief -no-ansi :', getreg(""))[:-2]<S-Left><S-Left><Right>