Mercurial > vim
comparison runtime/optwin.vim @ 22723:5b7ea82bc18f
Update runtime files.
Commit: https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 26 21:12:46 2020 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 26 Oct 2020 21:15:07 +0100 |
parents | 8e535ffc8a38 |
children | 8dad79c661d1 |
comparison
equal
deleted
inserted
replaced
22722:41cc1c207f82 | 22723:5b7ea82bc18f |
---|---|
1 " These commands create the option window. | 1 " These commands create the option window. |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2020 Sep 10 | 4 " Last Change: 2020 Oct 23 |
5 | 5 |
6 " If there already is an option window, jump to that one. | 6 " If there already is an option window, jump to that one. |
7 let buf = bufnr('option-window') | 7 let buf = bufnr('option-window') |
8 if buf >= 0 | 8 if buf >= 0 |
9 let winids = win_findbuf(buf) | 9 let winids = win_findbuf(buf) |
615 endif | 615 endif |
616 call <SID>AddOption("mousemodel", gettext("\"extend\", \"popup\" or \"popup_setpos\"; what the right\nmouse button is used for")) | 616 call <SID>AddOption("mousemodel", gettext("\"extend\", \"popup\" or \"popup_setpos\"; what the right\nmouse button is used for")) |
617 call <SID>OptionG("mousem", &mousem) | 617 call <SID>OptionG("mousem", &mousem) |
618 call <SID>AddOption("mousetime", gettext("maximum time in msec to recognize a double-click")) | 618 call <SID>AddOption("mousetime", gettext("maximum time in msec to recognize a double-click")) |
619 call append("$", " \tset mouset=" . &mouset) | 619 call append("$", " \tset mouset=" . &mouset) |
620 call <SID>AddOption("ttymouse", gettext("\"xterm\", \"xterm2\", \"dec\" or \"netterm\"; type of mouse")) | 620 call <SID>AddOption("ttymouse", gettext("\"xterm\", \"xterm2\", \"sgr\", etc.; type of mouse")) |
621 call <SID>OptionG("ttym", &ttym) | 621 call <SID>OptionG("ttym", &ttym) |
622 if has("mouseshape") | 622 if has("mouseshape") |
623 call <SID>AddOption("mouseshape", gettext("what the mouse pointer looks like in different modes")) | 623 call <SID>AddOption("mouseshape", gettext("what the mouse pointer looks like in different modes")) |
624 call <SID>OptionG("mouses", &mouses) | 624 call <SID>OptionG("mouses", &mouses) |
625 endif | 625 endif |
686 endif | 686 endif |
687 if has("eval") | 687 if has("eval") |
688 call <SID>AddOption("balloonexpr", gettext("expression to show in balloon eval")) | 688 call <SID>AddOption("balloonexpr", gettext("expression to show in balloon eval")) |
689 call append("$", " \tset bexpr=" . &bexpr) | 689 call append("$", " \tset bexpr=" . &bexpr) |
690 endif | 690 endif |
691 endif | |
692 if exists("+macatsui") | |
693 call <SID>AddOption("macatsui", gettext("use ATSUI text drawing; disable to avoid display problems")) | |
694 call <SID>OptionG("macatsui", &macatsui) | |
695 endif | 691 endif |
696 endif | 692 endif |
697 | 693 |
698 if has("printer") | 694 if has("printer") |
699 call <SID>Header(gettext("printing")) | 695 call <SID>Header(gettext("printing")) |
789 call append("$", "\t" .. s:local_to_buffer) | 785 call append("$", "\t" .. s:local_to_buffer) |
790 call <SID>BinOptionL("mod") | 786 call <SID>BinOptionL("mod") |
791 call <SID>AddOption("readonly", gettext("buffer is not to be written")) | 787 call <SID>AddOption("readonly", gettext("buffer is not to be written")) |
792 call append("$", "\t" .. s:local_to_buffer) | 788 call append("$", "\t" .. s:local_to_buffer) |
793 call <SID>BinOptionL("ro") | 789 call <SID>BinOptionL("ro") |
794 call <SID>AddOption("modifiable", gettext("changes to the text are not possible")) | 790 call <SID>AddOption("modifiable", gettext("changes to the text are possible")) |
795 call append("$", "\t" .. s:local_to_buffer) | 791 call append("$", "\t" .. s:local_to_buffer) |
796 call <SID>BinOptionL("ma") | 792 call <SID>BinOptionL("ma") |
797 call <SID>AddOption("textwidth", gettext("line length above which to break a line")) | 793 call <SID>AddOption("textwidth", gettext("line length above which to break a line")) |
798 call append("$", "\t" .. s:local_to_buffer) | 794 call append("$", "\t" .. s:local_to_buffer) |
799 call <SID>OptionL("tw") | 795 call <SID>OptionL("tw") |
850 call <SID>AddOption("digraph", gettext("enable entering digraphs with c1 <BS> c2")) | 846 call <SID>AddOption("digraph", gettext("enable entering digraphs with c1 <BS> c2")) |
851 call <SID>BinOptionG("dg", &dg) | 847 call <SID>BinOptionG("dg", &dg) |
852 endif | 848 endif |
853 call <SID>AddOption("tildeop", gettext("the \"~\" command behaves like an operator")) | 849 call <SID>AddOption("tildeop", gettext("the \"~\" command behaves like an operator")) |
854 call <SID>BinOptionG("top", &top) | 850 call <SID>BinOptionG("top", &top) |
855 call <SID>AddOption("operatorfunc", gettext("function called for the\"g@\" operator")) | 851 call <SID>AddOption("operatorfunc", gettext("function called for the \"g@\" operator")) |
856 call <SID>OptionG("opfunc", &opfunc) | 852 call <SID>OptionG("opfunc", &opfunc) |
857 call <SID>AddOption("showmatch", gettext("when inserting a bracket, briefly jump to its match")) | 853 call <SID>AddOption("showmatch", gettext("when inserting a bracket, briefly jump to its match")) |
858 call <SID>BinOptionG("sm", &sm) | 854 call <SID>BinOptionG("sm", &sm) |
859 call <SID>AddOption("matchtime", gettext("tenth of a second to show a match for 'showmatch'")) | 855 call <SID>AddOption("matchtime", gettext("tenth of a second to show a match for 'showmatch'")) |
860 call append("$", " \tset mat=" . &mat) | 856 call append("$", " \tset mat=" . &mat) |
861 call <SID>AddOption("matchpairs", gettext("list of pairs that match for the \"%\" command")) | 857 call <SID>AddOption("matchpairs", gettext("list of pairs that match for the \"%\" command")) |
862 call append("$", "\t" .. s:local_to_buffer) | 858 call append("$", "\t" .. s:local_to_buffer) |
863 call <SID>OptionL("mps") | 859 call <SID>OptionL("mps") |
864 call <SID>AddOption("joinspaces", gettext("use two spaces after '.' when joining a line")) | 860 call <SID>AddOption("joinspaces", gettext("use two spaces after '.' when joining a line")) |
865 call <SID>BinOptionG("js", &js) | 861 call <SID>BinOptionG("js", &js) |
866 call <SID>AddOption("nrformats", gettext("\"alpha\", \"octal\" and/or \"hex\"; number formats recognized for\nCTRL-A and CTRL-X commands")) | 862 call <SID>AddOption("nrformats", gettext("\"alpha\", \"octal\", \"hex\", \"bin\" and/or \"unsigned\"; number formats\nrecognized for CTRL-A and CTRL-X commands")) |
867 call append("$", "\t" .. s:local_to_buffer) | 863 call append("$", "\t" .. s:local_to_buffer) |
868 call <SID>OptionL("nf") | 864 call <SID>OptionL("nf") |
869 | 865 |
870 | 866 |
871 call <SID>Header(gettext("tabs and indenting")) | 867 call <SID>Header(gettext("tabs and indenting")) |
936 endif | 932 endif |
937 | 933 |
938 | 934 |
939 if has("folding") | 935 if has("folding") |
940 call <SID>Header(gettext("folding")) | 936 call <SID>Header(gettext("folding")) |
941 call <SID>AddOption("foldenable", gettext("set to display all folds open")) | 937 call <SID>AddOption("foldenable", gettext("unset to display all folds open")) |
942 call append("$", "\t" .. s:local_to_window) | 938 call append("$", "\t" .. s:local_to_window) |
943 call <SID>BinOptionL("fen") | 939 call <SID>BinOptionL("fen") |
944 call <SID>AddOption("foldlevel", gettext("folds with a level higher than this number will be closed")) | 940 call <SID>AddOption("foldlevel", gettext("folds with a level higher than this number will be closed")) |
945 call append("$", "\t" .. s:local_to_window) | 941 call append("$", "\t" .. s:local_to_window) |
946 call <SID>OptionL("fdl") | 942 call <SID>OptionL("fdl") |
959 call <SID>AddOption("foldminlines", gettext("minimum number of screen lines for a fold to be closed")) | 955 call <SID>AddOption("foldminlines", gettext("minimum number of screen lines for a fold to be closed")) |
960 call append("$", "\t" .. s:local_to_window) | 956 call append("$", "\t" .. s:local_to_window) |
961 call <SID>OptionL("fml") | 957 call <SID>OptionL("fml") |
962 call <SID>AddOption("commentstring", gettext("template for comments; used to put the marker in")) | 958 call <SID>AddOption("commentstring", gettext("template for comments; used to put the marker in")) |
963 call <SID>OptionL("cms") | 959 call <SID>OptionL("cms") |
964 call <SID>AddOption("foldmethod", gettext("folding type: \"manual\", \"indent\", \"expr\", \"marker\" or \"syntax\"")) | 960 call <SID>AddOption("foldmethod", gettext("folding type: \"manual\", \"indent\", \"expr\", \"marker\",\n\"syntax\" or \"diff\"")) |
965 call append("$", "\t" .. s:local_to_window) | 961 call append("$", "\t" .. s:local_to_window) |
966 call <SID>OptionL("fdm") | 962 call <SID>OptionL("fdm") |
967 call <SID>AddOption("foldexpr", gettext("expression used when 'foldmethod' is \"expr\"")) | 963 call <SID>AddOption("foldexpr", gettext("expression used when 'foldmethod' is \"expr\"")) |
968 call append("$", "\t" .. s:local_to_window) | 964 call append("$", "\t" .. s:local_to_window) |
969 call <SID>OptionL("fde") | 965 call <SID>OptionL("fde") |
1067 call <SID>AddOption("fsync", gettext("forcibly sync the file to disk after writing it")) | 1063 call <SID>AddOption("fsync", gettext("forcibly sync the file to disk after writing it")) |
1068 call <SID>BinOptionG("fs", &fs) | 1064 call <SID>BinOptionG("fs", &fs) |
1069 call <SID>AddOption("shortname", gettext("use 8.3 file names")) | 1065 call <SID>AddOption("shortname", gettext("use 8.3 file names")) |
1070 call append("$", "\t" .. s:local_to_buffer) | 1066 call append("$", "\t" .. s:local_to_buffer) |
1071 call <SID>BinOptionL("sn") | 1067 call <SID>BinOptionL("sn") |
1072 call <SID>AddOption("cryptmethod", gettext("encryption method for file writing: zip or blowfish")) | 1068 call <SID>AddOption("cryptmethod", gettext("encryption method for file writing: zip, blowfish or blowfish2")) |
1073 call append("$", "\t" .. s:local_to_buffer) | 1069 call append("$", "\t" .. s:local_to_buffer) |
1074 call <SID>OptionL("cm") | 1070 call <SID>OptionL("cm") |
1075 | 1071 |
1076 | 1072 |
1077 call <SID>Header(gettext("the swap file")) | 1073 call <SID>Header(gettext("the swap file")) |
1091 call <SID>AddOption("maxmemtot", gettext("maximum amount of memory in Kbyte used for all buffers")) | 1087 call <SID>AddOption("maxmemtot", gettext("maximum amount of memory in Kbyte used for all buffers")) |
1092 call append("$", " \tset mmt=" . &mmt) | 1088 call append("$", " \tset mmt=" . &mmt) |
1093 | 1089 |
1094 | 1090 |
1095 call <SID>Header(gettext("command line editing")) | 1091 call <SID>Header(gettext("command line editing")) |
1096 call <SID>AddOption("history", gettext("how many command lines are remembered ")) | 1092 call <SID>AddOption("history", gettext("how many command lines are remembered")) |
1097 call append("$", " \tset hi=" . &hi) | 1093 call append("$", " \tset hi=" . &hi) |
1098 call <SID>AddOption("wildchar", gettext("key that triggers command-line expansion")) | 1094 call <SID>AddOption("wildchar", gettext("key that triggers command-line expansion")) |
1099 call append("$", " \tset wc=" . &wc) | 1095 call append("$", " \tset wc=" . &wc) |
1100 call <SID>AddOption("wildcharm", gettext("like 'wildchar' but can also be used in a mapping")) | 1096 call <SID>AddOption("wildcharm", gettext("like 'wildchar' but can also be used in a mapping")) |
1101 call append("$", " \tset wcm=" . &wcm) | 1097 call append("$", " \tset wcm=" . &wcm) |
1185 call <SID>AddOption("quickfixtextfunc", gettext("function to display text in the quickfix window")) | 1181 call <SID>AddOption("quickfixtextfunc", gettext("function to display text in the quickfix window")) |
1186 call <SID>OptionG("qftf", &qftf) | 1182 call <SID>OptionG("qftf", &qftf) |
1187 endif | 1183 endif |
1188 | 1184 |
1189 | 1185 |
1190 if has("win32") || has("osfiletype") | 1186 if has("win32") |
1191 call <SID>Header(gettext("system specific")) | 1187 call <SID>Header(gettext("system specific")) |
1192 if has("osfiletype") | 1188 call <SID>AddOption("shellslash", gettext("use forward slashes in file names; for Unix-like shells")) |
1193 call <SID>AddOption("osfiletype", gettext("OS-specific information about the type of file")) | 1189 call <SID>BinOptionG("ssl", &ssl) |
1194 call append("$", "\t" .. s:local_to_buffer) | 1190 call <SID>AddOption("completeslash", gettext("specifies slash/backslash used for completion")) |
1195 call <SID>OptionL("oft") | 1191 call <SID>OptionG("csl", &csl) |
1196 endif | |
1197 if has("win32") | |
1198 call <SID>AddOption("shellslash", gettext("use forward slashes in file names; for Unix-like shells")) | |
1199 call <SID>BinOptionG("ssl", &ssl) | |
1200 call <SID>AddOption("completeslash", gettext("specifies slash/backslash used for completion")) | |
1201 call <SID>OptionG("csl", &csl) | |
1202 endif | |
1203 endif | 1192 endif |
1204 | 1193 |
1205 | 1194 |
1206 call <SID>Header(gettext("language specific")) | 1195 call <SID>Header(gettext("language specific")) |
1207 call <SID>AddOption("isfname", gettext("specifies the characters in a file name")) | 1196 call <SID>AddOption("isfname", gettext("specifies the characters in a file name")) |
1233 call append("$", " \tset al=" . &al) | 1222 call append("$", " \tset al=" . &al) |
1234 call <SID>AddOption("hkmap", gettext("use Hebrew keyboard mapping")) | 1223 call <SID>AddOption("hkmap", gettext("use Hebrew keyboard mapping")) |
1235 call <SID>BinOptionG("hk", &hk) | 1224 call <SID>BinOptionG("hk", &hk) |
1236 call <SID>AddOption("hkmapp", gettext("use phonetic Hebrew keyboard mapping")) | 1225 call <SID>AddOption("hkmapp", gettext("use phonetic Hebrew keyboard mapping")) |
1237 call <SID>BinOptionG("hkp", &hkp) | 1226 call <SID>BinOptionG("hkp", &hkp) |
1238 endif | |
1239 if has("farsi") | |
1240 call <SID>AddOption("altkeymap", gettext("use Farsi as the second language when 'revins' is set")) | |
1241 call <SID>BinOptionG("akm", &akm) | |
1242 call <SID>AddOption("fkmap", gettext("use Farsi keyboard mapping")) | |
1243 call <SID>BinOptionG("fk", &fk) | |
1244 endif | 1227 endif |
1245 if has("arabic") | 1228 if has("arabic") |
1246 call <SID>AddOption("arabic", gettext("prepare for editing Arabic text")) | 1229 call <SID>AddOption("arabic", gettext("prepare for editing Arabic text")) |
1247 call append("$", "\t" .. s:local_to_window) | 1230 call append("$", "\t" .. s:local_to_window) |
1248 call <SID>BinOptionL("arab") | 1231 call <SID>BinOptionL("arab") |
1308 call <SID>AddOption("emoji", gettext("emoji characters are full width")) | 1291 call <SID>AddOption("emoji", gettext("emoji characters are full width")) |
1309 call <SID>BinOptionG("emo", &emo) | 1292 call <SID>BinOptionG("emo", &emo) |
1310 | 1293 |
1311 | 1294 |
1312 call <SID>Header(gettext("various")) | 1295 call <SID>Header(gettext("various")) |
1313 call <SID>AddOption("virtualedit", gettext("when to use virtual editing: \"block\", \"insert\" and/or \"all\"")) | 1296 call <SID>AddOption("virtualedit", gettext("when to use virtual editing: \"block\", \"insert\", \"all\"\nand/or \"onemore\"")) |
1314 call <SID>OptionG("ve", &ve) | 1297 call <SID>OptionG("ve", &ve) |
1315 call <SID>AddOption("eventignore", gettext("list of autocommand events which are to be ignored")) | 1298 call <SID>AddOption("eventignore", gettext("list of autocommand events which are to be ignored")) |
1316 call <SID>OptionG("ei", &ei) | 1299 call <SID>OptionG("ei", &ei) |
1317 call <SID>AddOption("loadplugins", gettext("load plugin scripts when starting up")) | 1300 call <SID>AddOption("loadplugins", gettext("load plugin scripts when starting up")) |
1318 call <SID>BinOptionG("lpl", &lpl) | 1301 call <SID>BinOptionG("lpl", &lpl) |
1348 endif | 1331 endif |
1349 if has("quickfix") | 1332 if has("quickfix") |
1350 call <SID>AddOption("bufhidden", gettext("what happens with a buffer when it's no longer in a window")) | 1333 call <SID>AddOption("bufhidden", gettext("what happens with a buffer when it's no longer in a window")) |
1351 call append("$", "\t" .. s:local_to_buffer) | 1334 call append("$", "\t" .. s:local_to_buffer) |
1352 call <SID>OptionL("bh") | 1335 call <SID>OptionL("bh") |
1353 call <SID>AddOption("buftype", gettext("\"\", \"nofile\", \"nowrite\" or \"quickfix\": type of buffer")) | 1336 call <SID>AddOption("buftype", gettext("empty, \"nofile\", \"nowrite\", \"quickfix\", etc.: type of buffer")) |
1354 call append("$", "\t" .. s:local_to_buffer) | 1337 call append("$", "\t" .. s:local_to_buffer) |
1355 call <SID>OptionL("bt") | 1338 call <SID>OptionL("bt") |
1356 endif | 1339 endif |
1357 call <SID>AddOption("buflisted", gettext("whether the buffer shows up in the buffer list")) | 1340 call <SID>AddOption("buflisted", gettext("whether the buffer shows up in the buffer list")) |
1358 call append("$", "\t" .. s:local_to_buffer) | 1341 call append("$", "\t" .. s:local_to_buffer) |