An input method switcher for wsl.
Download im-select.exe and make it visible in ${PATH}
.
require("imtoggle").setup()
It enables the plugin by default.
:lua require("imtoggle").enable()
:lua require("imtoggle").disable()
An input method switcher for neovim.
An input method switcher for wsl.
Download im-select.exe and make it visible in ${PATH}
.
require("imtoggle").setup()
It enables the plugin by default.
:lua require("imtoggle").enable()
:lua require("imtoggle").disable()
Vim 能够检测当前光标和光标之前的 Unicode 字符,感觉如果能找到一个好的触发条件就能够支撑起一个根据当前编辑状态自动切换输入法的插件了。
https://stackoverflow.com/a/64981366
下面这段代码作者关于中文的吐槽:jdhao/nvim-config#26
matchstr(getline('.'), '\%' . col('.') . 'c.')
function! CharAtIdx(str, idx) abort
" Get char at idx from str. Note that this is based on character index
" instead of the byte index.
return strcharpart(a:str, a:idx, 1)
endfunction
function! CursorCharIdx() abort
" A more concise way to get character index under cursor.
let cursor_byte_idx = col('.')
if cursor_byte_idx == 1
return 0
endif
let pre_cursor_text = getline('.')[:col('.')-2]
return strchars(pre_cursor_text)
endfunction
let cur_char_idx = CursorCharIdx()
let cur_char = CharAtIdx(getline('.'), cur_char_idx)
目前 Emacs 上有两个插件 sis 和 pyim 有“探针”功能。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.