52
GitHub - ianva/vim-youdao-translater: vim的有道取词翻译插件
source link: https://github.com/ianva/vim-youdao-translater
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
vim youdao translater
vim youdao translater 是一个利用 有道词典在线版 制作的vim插件,可以帮你在 vim 中翻译单词或语句
安装
普通安装:
把 ydt.vim
文件拷贝到 ~/.vim/plugin
目录下,就可以用了。
pathogen 安装:
如果装有 pathogen 可以 :
cd ~/.vim/bundle
git clone [email protected]:ianva/vim-youdao-translater.git
其他
添加 ~/.vimrc
文件:
vnoremap <silent> <C-T> :<C-u>Ydv<CR> nnoremap <silent> <C-T> :<C-u>Ydc<CR> noremap <leader>yd :<C-u>Yde<CR>
如何使用
在普通模式下,按 ctrl+t
, 会翻译当前光标下的单词;
在 visual
模式下选中单词或语句,按 ctrl+t
,会翻译选择的单词或语句;
点击引导键再点y,d,可以在命令行输入要翻译的单词或语句;
译文将会在编辑器底部的命令栏显示。
License
The MIT License (MIT)
Copyright (c) ianva
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK