diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-26 19:18:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-26 19:18:05 +0200 |
commit | abab85a4994fec3e95ab79c5cdf94a7f893c1aeb (patch) | |
tree | cc4050290198250d686a91d7395b9d85f662845e /runtime/doc/options.txt | |
parent | a0169128d98669c753c899353127263e1ea289f9 (diff) | |
download | vim-git-abab85a4994fec3e95ab79c5cdf94a7f893c1aeb.tar.gz |
updated for version 7.3.1248v7.3.1248
Problem: Still have old hacking code for Input Method.
Solution: Add 'imactivatefunc' and 'imstatusfunc' as a generic solution to
Input Method activation. (Yukihiro Nakadaira)
Diffstat (limited to 'runtime/doc/options.txt')
-rw-r--r-- | runtime/doc/options.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 93504a45f..f9fa9d122 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -3993,6 +3993,26 @@ A jump table for the options with a short description can be found at |Q_op|. Can be overruled by using "\c" or "\C" in the pattern, see |/ignorecase|. + *'imactivatefunc'* *'imaf'* +'imactivatefunc' 'imaf' string (default "") + global + {not in Vi} + {only available when compiled with |+xim| and + |+GUI_GTK|} + This option specifies a function that will be called to + activate/inactivate Input Method. + + Example: > + function ImActivateFunc(active) + if a:active + ... do something + else + ... do something + endif + " return value is not used + endfunction + set imactivatefunc=ImActivateFunc +< *'imactivatekey'* *'imak'* 'imactivatekey' 'imak' string (default "") global @@ -4089,6 +4109,24 @@ A jump table for the options with a short description can be found at |Q_op|. The value 0 may not work correctly with Athena and Motif with some XIM methods. Use 'imdisable' to disable XIM then. + *'imstatusfunc'* *'imsf'* +'imstatusfunc' 'imsf' string (default "") + global + {not in Vi} + {only available when compiled with |+xim| and + |+GUI_GTK|} + This option specifies a function that is called to obtain the status + of Input Method. It must return a positive number when IME is active. + + Example: > + function ImStatusFunc() + let is_active = ...do something + return is_active ? 1 : 0 + endfunction + set imstatusfunc=ImStatusFunc +< + NOTE: This function is invoked very often. Keep it fast. + *'include'* *'inc'* 'include' 'inc' string (default "^\s*#\s*include") global or local to buffer |global-local| |