|
1 |
| -*mbyte.txt* For Vim version 8.0. Last change: 2016 Jul 21 |
| 1 | +*mbyte.txt* For Vim version 8.1. Last change: 2018 Jan 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
@@ -26,8 +26,9 @@ For changing the language of messages and menus see |mlang.txt|.
|
26 | 26 | 7. Input on X11 |mbyte-XIM|
|
27 | 27 | 8. Input on MS-Windows |mbyte-IME|
|
28 | 28 | 9. Input with a keymap |mbyte-keymap|
|
29 |
| -10. Using UTF-8 |mbyte-utf8| |
30 |
| -11. Overview of options |mbyte-options| |
| 29 | +10. Input with imactivatefunc() |mbyte-func| |
| 30 | +11. Using UTF-8 |mbyte-utf8| |
| 31 | +12. Overview of options |mbyte-options| |
31 | 32 |
|
32 | 33 | NOTE: This file contains UTF-8 characters. These may show up as strange
|
33 | 34 | characters or boxes when using another encoding.
|
@@ -832,6 +833,9 @@ Use the RPM or port for your system.
|
832 | 833 |
|
833 | 834 | Currently, GUI Vim supports three styles, |OverTheSpot|, |OffTheSpot| and
|
834 | 835 | |Root|.
|
| 836 | + When compiled with |+GUI_GTK| feature, GUI Vim supports two styles, |
| 837 | + |OnTheSpot| and |OverTheSpot|. You can select the style with the 'imstyle' |
| 838 | + option. |
835 | 839 |
|
836 | 840 | *. on-the-spot *OnTheSpot*
|
837 | 841 | Preedit Area and Status Area are performed by the client application in
|
@@ -1251,7 +1255,35 @@ Combining forms:
|
1251 | 1255 | ﭏ 0xfb4f Xal alef-lamed
|
1252 | 1256 |
|
1253 | 1257 | ==============================================================================
|
1254 |
| -10. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8* |
| 1258 | +10. Input with imactivatefunc() *mbyte-func* |
| 1259 | + |
| 1260 | +Vim has the 'imactivatefunc' and 'imstatusfunc' options. These are useful to |
| 1261 | +activate/deactivate the input method from Vim in any way, also with an external |
| 1262 | +command. For example, fcitx provide fcitx-remote command: > |
| 1263 | +
|
| 1264 | + set iminsert=2 |
| 1265 | + set imsearch=2 |
| 1266 | + set imcmdline |
| 1267 | +
|
| 1268 | + set imactivatefunc=ImActivate |
| 1269 | + function! ImActivate(active) |
| 1270 | + if a:active |
| 1271 | + call system('fcitx-remote -o') |
| 1272 | + else |
| 1273 | + call system('fcitx-remote -c') |
| 1274 | + endif |
| 1275 | + endfunction |
| 1276 | +
|
| 1277 | + set imstatusfunc=ImStatus |
| 1278 | + function! ImStatus() |
| 1279 | + return system('fcitx-remote')[0] is# '2' |
| 1280 | + endfunction |
| 1281 | +
|
| 1282 | +Using this script, you can activate/deactivate XIM via Vim even when it is not |
| 1283 | +compiled with |+xim|. |
| 1284 | + |
| 1285 | +============================================================================== |
| 1286 | +11. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8* |
1255 | 1287 | *Unicode* *unicode*
|
1256 | 1288 | The Unicode character set was designed to include all characters from other
|
1257 | 1289 | character sets. Therefore it is possible to write text in any language using
|
@@ -1399,7 +1431,7 @@ not everybody is able to type a composing character.
|
1399 | 1431 |
|
1400 | 1432 |
|
1401 | 1433 | ==============================================================================
|
1402 |
| -11. Overview of options *mbyte-options* |
| 1434 | +12. Overview of options *mbyte-options* |
1403 | 1435 |
|
1404 | 1436 | These options are relevant for editing multi-byte files. Check the help in
|
1405 | 1437 | options.txt for detailed information.
|
|
0 commit comments