[email protected]+ if len i 1 return endif let c=i 0 ' Use Chinese ' if Szw c norm K ' Execute original K' return endi...">

当前位置:网站首页>VIM mapping large K

VIM mapping large K

2022-07-07 06:21:00 fqbqrr

fun! Ysdk()
" Large mapping K"
:norm "+yiw
"
let i=@+
if len(i)<1
    return
endif
let c=i[0]
" Use Chinese "
if (!Szw(c))
    norm!K
    " Execute original K"
    return 
endif
call Xsdy(i)
endf

First Current cursor The following words , Then judge the first character , If chinese , take chinese Definition . otherwise , Use the original K.

原网站

版权声明
本文为[fqbqrr]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070114271706.html