T.vim icon indicating copy to clipboard operation
T.vim copied to clipboard

TWinsize 没有作用,打开翻译页面一直是 50

Open TSalmon3 opened this issue 6 months ago • 0 comments

nnoremap dt :call T#Main(expand('')) nnoremap dr :call T#DisplayRecent()

vnoremap dt :call T#VisualSearch(visualmode())

" 设置翻译页面展示最近翻译的词条数,默认展示最近五条翻译 let g:displayRecentNum = 5

" 设置记录最近翻译的条数,默认记录最近查询的100 个单词 let g:totalRecentNum = 100

" 设置翻译页面的宽度,默认为 50 let g:TWinSize = 10

augroup DisplayTrans autocmd! autocmd BufEnter * if &filetype ==# 'DisplayTrans' && winnr('$') == 1 | quit | endif autocmd FileType DisplayTrans setlocal wrap autocmd FileType DisplayTrans hi content guifg=#81A1C1 ctermfg=4 autocmd FileType DisplayTrans hi phonetic guifg=#EBCB8B ctermfg=3 autocmd FileType DisplayTrans hi word guifg=#A3BE8C ctermfg=2 autocmd FileType DisplayTrans hi star guifg=#BF616A ctermfg=1 augroup END

TSalmon3 avatar Oct 09 '25 22:10 TSalmon3