let g:translator_target_lang = 'ja' let g:translator_source_lang = 'auto' let g:translator_default_engines = ['trans'] let g:translator_history_enable = v:false " Echo translation in the cmdline nmap Tt Translate vmap Tt TranslateV " Display translation in a window nmap Tw TranslateW vmap Tw TranslateWV " Replace the text with translation nmap Tr TranslateR vmap Tr TranslateRV " Translate the text in clipboard nmap Tx TranslateX " Scrolling the popup window nnoremap translator#window#float#has_scroll() ? \ translator#window#float#scroll(1) : "\" nnoremap translator#window#float#has_scroll() ? \ translator#window#float#scroll(0) : "\"