Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Intellij Ideavim plugin support complex function definition?

Does it support following code?

More precisely, does it support defining function? invoking function system? and so on.

Following code is used to auto close my Chinese input method when quit from insert normal.

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()
like image 280
Run Avatar asked Oct 20 '25 14:10

Run


1 Answers

No, IdeaVim understands only several configuration options in ~/.ideavimrc, the rest is ignored. See this feature request for details.

like image 148
Andrey Vlasovskikh Avatar answered Oct 23 '25 08:10

Andrey Vlasovskikh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!