mirror of
https://github.com/lilydjwg/fcitx.vim.git
synced 2025-12-27 02:24: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.
|
||||
if exists("g:loaded_fcitx")
|
||||
if exists('##InsertLeavePre')
|
||||
au InsertLeavePre * call Fcitx2en()
|
||||
au InsertLeavePre * if reg_executing() == "" | call Fcitx2en() | endif
|
||||
else
|
||||
au InsertLeave * call Fcitx2en()
|
||||
au InsertLeave * if reg_executing() == "" | call Fcitx2en() | endif
|
||||
endif
|
||||
au InsertEnter * call Fcitx2zh()
|
||||
au CmdlineEnter [/\?] call Fcitx2zh()
|
||||
au CmdlineLeave [/\?] call Fcitx2en()
|
||||
au InsertEnter * if reg_executing() == "" | call Fcitx2zh() | endif
|
||||
au CmdlineEnter [/\?] if reg_executing() == "" | call Fcitx2zh() | endif
|
||||
au CmdlineLeave [/\?] if reg_executing() == "" | call Fcitx2en() | endif
|
||||
endif
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue