gpt4 book ai didi

vim - Intellij Ideavim 插件是否支持复杂的函数定义?

转载 作者:行者123 更新时间:2023-12-04 02:42:05 26 4
gpt4 key购买 nike

是否支持以下代码?

更准确地说,它是否支持定义功能?调用函数system ?等等。

以下代码用于在退出正常插入时自动关闭我的中文输入法。

let g:input_toggle = 1
function! Fcitx2en()
let s:input_status = system("fcitx-remote")
if s:input_status == 2
let g:input_toggle = 1
let l:a = system("fcitx-remote -c")
endif
endfunction

function! Fcitx2zh()
let s:input_status = system("fcitx-remote")
if s:input_status != 2 && g:input_toggle == 1
let l:a = system("fcitx-remote -o")
let g:input_toggle = 0
endif
endfunction

set timeoutlen=150
autocmd InsertLeave * call Fcitx2en()
"autocmd InsertEnter * call Fcitx2zh()

最佳答案

不,IdeaVim 只理解 ~/.ideavimrc 中的几个配置选项,其余的被忽略。见 this feature request详情。

关于vim - Intellij Ideavim 插件是否支持复杂的函数定义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34963690/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com