Browse Source

📦 NEW: add im-select

pull/93/head
Xin.Chen 3 years ago
parent
commit
a70d2adb45
  1. BIN
      im-select.exe
  2. 16
      init.vim

BIN
im-select.exe

Binary file not shown.

16
init.vim

@ -28,11 +28,21 @@ lua require('lsp/nvim-cmp')
" lua require('lsp/nvim-cmp-config')
" lua require('lsp/language_servers')
" windows problems
" 复制到windows剪贴板
" https://stackoverflow.com/questions/44480829/how-to-copy-to-clipboard-in-vim-of-bash-on-windows
autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif
" magic search
nnoremap / /\v
vnoremap / /\v
" 1033 中文语言
" 2052 英文语言
augroup im_select
autocmd!
autocmd InsertLeave * silent !./im-select.exe 1033
autocmd InsertEnter * silent !./im-select.exe 2052
autocmd BufRead * silent !./im-select.exe 1033
" autocmd CmdlineLeave * silent !./im-select.exe 1033
" autocmd CmdlineEnter * silent !./im-select.exe 2052
augroup END

Loading…
Cancel
Save