mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2025-12-26 18:14:57 +08:00
don't execute when executing a macro
This commit is contained in:
parent
92247352c6
commit
451d277bbd
1 changed files with 5 additions and 5 deletions
|
|
@ -65,13 +65,13 @@ endif
|
||||||
" Register autocmd if successfully loaded.
|
" Register autocmd if successfully loaded.
|
||||||
if exists("g:loaded_fcitx")
|
if exists("g:loaded_fcitx")
|
||||||
if exists('##InsertLeavePre')
|
if exists('##InsertLeavePre')
|
||||||
au InsertLeavePre * call Fcitx2en()
|
au InsertLeavePre * if reg_executing() == "" | call Fcitx2en() | endif
|
||||||
else
|
else
|
||||||
au InsertLeave * call Fcitx2en()
|
au InsertLeave * if reg_executing() == "" | call Fcitx2en() | endif
|
||||||
endif
|
endif
|
||||||
au InsertEnter * call Fcitx2zh()
|
au InsertEnter * if reg_executing() == "" | call Fcitx2zh() | endif
|
||||||
au CmdlineEnter [/\?] call Fcitx2zh()
|
au CmdlineEnter [/\?] if reg_executing() == "" | call Fcitx2zh() | endif
|
||||||
au CmdlineLeave [/\?] call Fcitx2en()
|
au CmdlineLeave [/\?] if reg_executing() == "" | call Fcitx2en() | endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue