Mercurial > vim
annotate runtime/optwin.vim @ 27689:162c1a47e616
Added tag v8.2.4370 for changeset 48dee8a7b1d2f5695eb490be6e3af2d76cfef4b1
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Feb 2022 14:15:06 +0100 |
parents | f0d7cb510ce3 |
children | 8bc8071928ed |
rev | line source |
---|---|
7 | 1 " These commands create the option window. |
2 " | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
26708 | 4 " Last Change: 2021 Dec 21 |
7 | 5 |
6 " If there already is an option window, jump to that one. | |
12039
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
7 let buf = bufnr('option-window') |
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
8 if buf >= 0 |
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
9 let winids = win_findbuf(buf) |
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
10 if len(winids) > 0 |
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
11 if win_gotoid(winids[0]) == 1 |
7 | 12 finish |
13 endif | |
12039
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
14 endif |
7 | 15 endif |
16 | |
17 " Make sure the '<' flag is not included in 'cpoptions', otherwise <CR> would | |
18 " not be recognized. See ":help 'cpoptions'". | |
19 let s:cpo_save = &cpo | |
20 set cpo&vim | |
21 | |
22 " function to be called when <CR> is hit in the option-window | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
23 func <SID>CR() |
7 | 24 |
25 " If on a continued comment line, go back to the first comment line | |
2908 | 26 let lnum = search("^[^\t]", 'bWcn') |
7 | 27 let line = getline(lnum) |
28 | |
29 " <CR> on a "set" line executes the option line | |
30 if match(line, "^ \tset ") >= 0 | |
31 | |
32 " For a local option: go to the previous window | |
33 " If this is a help window, go to the window below it | |
34 let thiswin = winnr() | |
35 let local = <SID>Find(lnum) | |
36 if local >= 0 | |
37 exe line | |
38 call <SID>Update(lnum, line, local, thiswin) | |
39 endif | |
40 | |
41 " <CR> on a "option" line shows help for that option | |
42 elseif match(line, "^[a-z]") >= 0 | |
43 let name = substitute(line, '\([^\t]*\).*', '\1', "") | |
44 exe "help '" . name . "'" | |
45 | |
46 " <CR> on an index line jumps to the group | |
47 elseif match(line, '^ \=[0-9]') >= 0 | |
48 exe "norm! /" . line . "\<CR>zt" | |
49 endif | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
50 endfunc |
7 | 51 |
52 " function to be called when <Space> is hit in the option-window | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
53 func <SID>Space() |
7 | 54 |
55 let lnum = line(".") | |
56 let line = getline(lnum) | |
57 | |
58 " <Space> on a "set" line refreshes the option line | |
59 if match(line, "^ \tset ") >= 0 | |
60 | |
61 " For a local option: go to the previous window | |
62 " If this is a help window, go to the window below it | |
63 let thiswin = winnr() | |
64 let local = <SID>Find(lnum) | |
65 if local >= 0 | |
66 call <SID>Update(lnum, line, local, thiswin) | |
67 endif | |
68 | |
69 endif | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
70 endfunc |
7 | 71 |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
72 let s:local_to_window = gettext('(local to window)') |
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
73 let s:local_to_buffer = gettext('(local to buffer)') |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
74 let s:global_or_local = gettext('(global or local to buffer)') |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
75 |
7 | 76 " find the window in which the option applies |
77 " returns 0 for global option, 1 for local option, -1 for error | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
78 func <SID>Find(lnum) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
79 let line = getline(a:lnum - 1) |
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
80 if line =~ s:local_to_window || line =~ s:local_to_buffer |
7 | 81 let local = 1 |
82 let thiswin = winnr() | |
2908 | 83 wincmd p |
7 | 84 if exists("b:current_syntax") && b:current_syntax == "help" |
2908 | 85 wincmd j |
7 | 86 if winnr() == thiswin |
2908 | 87 wincmd j |
7 | 88 endif |
89 endif | |
90 else | |
91 let local = 0 | |
92 endif | |
93 if local && (winnr() == thiswin || (exists("b:current_syntax") | |
94 \ && b:current_syntax == "help")) | |
95 echo "Don't know in which window" | |
96 let local = -1 | |
97 endif | |
98 return local | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
99 endfunc |
7 | 100 |
101 " Update a "set" line in the option window | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
102 func <SID>Update(lnum, line, local, thiswin) |
7 | 103 " get the new value of the option and update the option window line |
104 if match(a:line, "=") >= 0 | |
105 let name = substitute(a:line, '^ \tset \([^=]*\)=.*', '\1', "") | |
106 else | |
107 let name = substitute(a:line, '^ \tset \(no\)\=\([a-z]*\).*', '\2', "") | |
108 endif | |
109 if name == "pt" && &pt =~ "\x80" | |
110 let val = <SID>PTvalue() | |
111 else | |
2908 | 112 let val = escape(eval('&' . name), " \t\\\"|") |
7 | 113 endif |
114 if a:local | |
2908 | 115 exe a:thiswin . "wincmd w" |
7 | 116 endif |
117 if match(a:line, "=") >= 0 || (val != "0" && val != "1") | |
118 call setline(a:lnum, " \tset " . name . "=" . val) | |
119 else | |
120 if val | |
121 call setline(a:lnum, " \tset " . name . "\tno" . name) | |
122 else | |
123 call setline(a:lnum, " \tset no" . name . "\t" . name) | |
124 endif | |
125 endif | |
126 set nomodified | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
127 endfunc |
7 | 128 |
129 " Reset 'title' and 'icon' to make it work faster. | |
13346
4dbf2a6972e6
patch 8.0.1547: undo in the options window makes it empty
Christian Brabandt <cb@256bit.org>
parents:
13341
diff
changeset
|
130 " Reset 'undolevels' to avoid undo'ing until the buffer is empty. |
7 | 131 let s:old_title = &title |
132 let s:old_icon = &icon | |
133 let s:old_sc = &sc | |
134 let s:old_ru = &ru | |
13346
4dbf2a6972e6
patch 8.0.1547: undo in the options window makes it empty
Christian Brabandt <cb@256bit.org>
parents:
13341
diff
changeset
|
135 let s:old_ul = &ul |
4dbf2a6972e6
patch 8.0.1547: undo in the options window makes it empty
Christian Brabandt <cb@256bit.org>
parents:
13341
diff
changeset
|
136 set notitle noicon nosc noru ul=-1 |
7 | 137 |
138 " If the current window is a help window, try finding a non-help window. | |
139 " Relies on syntax highlighting to be switched on. | |
140 let s:thiswin = winnr() | |
141 while exists("b:current_syntax") && b:current_syntax == "help" | |
2908 | 142 wincmd w |
7 | 143 if s:thiswin == winnr() |
144 break | |
145 endif | |
146 endwhile | |
147 | |
12039
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
148 " Open the window. $OPTWIN_CMD is set to "tab" for ":tab options". |
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
149 exe $OPTWIN_CMD . ' new option-window' |
2908 | 150 setlocal ts=15 tw=0 noro buftype=nofile |
7 | 151 |
152 " Insert help and a "set" command for each option. | |
21989
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
153 call append(0, gettext('" Each "set" line shows the current value of an option (on the left).')) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
154 call append(1, gettext('" Hit <Enter> on a "set" line to execute it.')) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
155 call append(2, gettext('" A boolean option will be toggled.')) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
156 call append(3, gettext('" For other options you can edit the value before hitting <Enter>.')) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
157 call append(4, gettext('" Hit <Enter> on a help line to open a help window on this option.')) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
158 call append(5, gettext('" Hit <Enter> on an index line to jump there.')) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
20856
diff
changeset
|
159 call append(6, gettext('" Hit <Space> on a "set" line to refresh it.')) |
7 | 160 |
161 " These functions are called often below. Keep them fast! | |
162 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
163 " Add an option name and explanation. The text can contain "\n" characters |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
164 " where a line break is to be inserted. |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
165 func <SID>AddOption(name, text) |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
166 let lines = split(a:text, "\n") |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
167 call append("$", a:name .. "\t" .. lines[0]) |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
168 for line in lines[1:] |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
169 call append("$", "\t" .. line) |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
170 endfor |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
171 endfunc |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
172 |
7 | 173 " Init a local binary option |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
174 func <SID>BinOptionL(name) |
2908 | 175 let val = getwinvar(winnr('#'), '&' . a:name) |
7 | 176 call append("$", substitute(substitute(" \tset " . val . a:name . "\t" . |
177 \!val . a:name, "0", "no", ""), "1", "", "")) | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
178 endfunc |
7 | 179 |
180 " Init a global binary option | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
181 func <SID>BinOptionG(name, val) |
7 | 182 call append("$", substitute(substitute(" \tset " . a:val . a:name . "\t" . |
183 \!a:val . a:name, "0", "no", ""), "1", "", "")) | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
184 endfunc |
7 | 185 |
186 " Init a local string option | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
187 func <SID>OptionL(name) |
2908 | 188 let val = escape(getwinvar(winnr('#'), '&' . a:name), " \t\\\"|") |
7 | 189 call append("$", " \tset " . a:name . "=" . val) |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
190 endfunc |
7 | 191 |
192 " Init a global string option | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
193 func <SID>OptionG(name, val) |
2908 | 194 call append("$", " \tset " . a:name . "=" . escape(a:val, " \t\\\"|")) |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
195 endfunc |
7 | 196 |
197 let s:idx = 1 | |
198 let s:lnum = line("$") | |
199 call append("$", "") | |
200 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
201 func <SID>Header(text) |
7 | 202 let line = s:idx . " " . a:text |
203 if s:idx < 10 | |
204 let line = " " . line | |
205 endif | |
206 call append("$", "") | |
207 call append("$", line) | |
208 call append("$", "") | |
209 call append(s:lnum, line) | |
210 let s:idx = s:idx + 1 | |
211 let s:lnum = s:lnum + 1 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
212 endfunc |
7 | 213 |
214 " Get the value of 'pastetoggle'. It could be a special key. | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
215 func <SID>PTvalue() |
7 | 216 redir @a |
217 silent set pt | |
218 redir END | |
219 return substitute(@a, '[^=]*=\(.*\)', '\1', "") | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
220 endfunc |
7 | 221 |
222 " Restore the previous value of 'cpoptions' here, it's used below. | |
223 let &cpo = s:cpo_save | |
224 | |
225 " List of all options, organized by function. | |
226 " The text should be sufficient to know what the option is used for. | |
227 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
228 call <SID>Header(gettext("important")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
229 call <SID>AddOption("compatible", gettext("behave very Vi compatible (not advisable)")) |
7 | 230 call <SID>BinOptionG("cp", &cp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
231 call <SID>AddOption("cpoptions", gettext("list of flags to specify Vi compatibility")) |
7 | 232 call <SID>OptionG("cpo", &cpo) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
233 call <SID>AddOption("insertmode", gettext("use Insert mode as the default mode")) |
7 | 234 call <SID>BinOptionG("im", &im) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
235 call <SID>AddOption("paste", gettext("paste mode, insert typed text literally")) |
7 | 236 call <SID>BinOptionG("paste", &paste) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
237 call <SID>AddOption("pastetoggle", gettext("key sequence to toggle paste mode")) |
7 | 238 if &pt =~ "\x80" |
239 call append("$", " \tset pt=" . <SID>PTvalue()) | |
240 else | |
241 call <SID>OptionG("pt", &pt) | |
242 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
243 call <SID>AddOption("runtimepath", gettext("list of directories used for runtime files and plugins")) |
7 | 244 call <SID>OptionG("rtp", &rtp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
245 call <SID>AddOption("packpath", gettext("list of directories used for plugin packages")) |
8182
95d59081580f
commit https://github.com/vim/vim/commit/f6fee0e2d4341c0c2f5339c1268e5877fafd07cf
Christian Brabandt <cb@256bit.org>
parents:
7538
diff
changeset
|
246 call <SID>OptionG("pp", &pp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
247 call <SID>AddOption("helpfile", gettext("name of the main help file")) |
7 | 248 call <SID>OptionG("hf", &hf) |
249 | |
250 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
251 call <SID>Header(gettext("moving around, searching and patterns")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
252 call <SID>AddOption("whichwrap", gettext("list of flags specifying which commands wrap to another line")) |
22186
7bbd111ee556
patch 8.2.1642: otions test fails
Bram Moolenaar <Bram@vim.org>
parents:
22180
diff
changeset
|
253 call <SID>OptionG("ww", &ww) |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
254 call <SID>AddOption("startofline", gettext("many jump commands move the cursor to the first non-blank\ncharacter of a line")) |
7 | 255 call <SID>BinOptionG("sol", &sol) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
256 call <SID>AddOption("paragraphs", gettext("nroff macro names that separate paragraphs")) |
7 | 257 call <SID>OptionG("para", ¶) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
258 call <SID>AddOption("sections", gettext("nroff macro names that separate sections")) |
7 | 259 call <SID>OptionG("sect", §) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
260 call <SID>AddOption("path", gettext("list of directory names used for file searching")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
261 call append("$", "\t" .. s:global_or_local) |
7 | 262 call <SID>OptionG("pa", &pa) |
26591 | 263 call <SID>AddOption("cdhome", gettext(":cd without argument goes to the home directory")) |
264 call <SID>BinOptionG("cdh", &cdh) | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
265 call <SID>AddOption("cdpath", gettext("list of directory names used for :cd")) |
7 | 266 call <SID>OptionG("cd", &cd) |
2385
295d53417fc3
Fix 'autochdir' not showing up in :options window. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2341
diff
changeset
|
267 if exists("+autochdir") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
268 call <SID>AddOption("autochdir", gettext("change to directory of file in buffer")) |
7 | 269 call <SID>BinOptionG("acd", &acd) |
270 endif | |
24268
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
22824
diff
changeset
|
271 call <SID>AddOption("autoshelldir", gettext("change to pwd of shell in terminal buffer")) |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
22824
diff
changeset
|
272 call <SID>BinOptionG("asd", &asd) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
273 call <SID>AddOption("wrapscan", gettext("search commands wrap around the end of the buffer")) |
7 | 274 call <SID>BinOptionG("ws", &ws) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
275 call <SID>AddOption("incsearch", gettext("show match for partly typed search command")) |
7 | 276 call <SID>BinOptionG("is", &is) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
277 call <SID>AddOption("magic", gettext("change the way backslashes are used in search patterns")) |
7 | 278 call <SID>BinOptionG("magic", &magic) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
279 call <SID>AddOption("regexpengine", gettext("select the default regexp engine used")) |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4254
diff
changeset
|
280 call <SID>OptionG("re", &re) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
281 call <SID>AddOption("ignorecase", gettext("ignore case when using a search pattern")) |
7 | 282 call <SID>BinOptionG("ic", &ic) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
283 call <SID>AddOption("smartcase", gettext("override 'ignorecase' when pattern has upper case characters")) |
7 | 284 call <SID>BinOptionG("scs", &scs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
285 call <SID>AddOption("casemap", gettext("what method to use for changing case of letters")) |
7 | 286 call <SID>OptionG("cmp", &cmp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
287 call <SID>AddOption("maxmempattern", gettext("maximum amount of memory in Kbyte used for pattern matching")) |
184 | 288 call append("$", " \tset mmp=" . &mmp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
289 call <SID>AddOption("define", gettext("pattern for a macro definition line")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
290 call append("$", "\t" .. s:global_or_local) |
7 | 291 call <SID>OptionG("def", &def) |
292 if has("find_in_path") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
293 call <SID>AddOption("include", gettext("pattern for an include-file line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
294 call append("$", "\t" .. s:local_to_buffer) |
7 | 295 call <SID>OptionL("inc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
296 call <SID>AddOption("includeexpr", gettext("expression used to transform an include line to a file name")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
297 call append("$", "\t" .. s:local_to_buffer) |
7 | 298 call <SID>OptionL("inex") |
299 endif | |
300 | |
301 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
302 call <SID>Header(gettext("tags")) |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
303 call <SID>AddOption("tagbsearch", gettext("use binary searching in tags files")) |
7 | 304 call <SID>BinOptionG("tbs", &tbs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
305 call <SID>AddOption("taglength", gettext("number of significant characters in a tag name or zero")) |
7 | 306 call append("$", " \tset tl=" . &tl) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
307 call <SID>AddOption("tags", gettext("list of file names to search for tags")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
308 call append("$", "\t" .. s:global_or_local) |
7 | 309 call <SID>OptionG("tag", &tag) |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
310 call <SID>AddOption("tagcase", gettext("how to handle case when searching in tags files:\n\"followic\" to follow 'ignorecase', \"ignore\" or \"match\"")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
311 call append("$", "\t" .. s:global_or_local) |
7266
6ba7182fb7bd
commit https://github.com/vim/vim/commit/0f6562e9036f889185dff49a75c7fc5ffb28b307
Christian Brabandt <cb@256bit.org>
parents:
7222
diff
changeset
|
312 call <SID>OptionG("tc", &tc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
313 call <SID>AddOption("tagrelative", gettext("file names in a tags file are relative to the tags file")) |
7 | 314 call <SID>BinOptionG("tr", &tr) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
315 call <SID>AddOption("tagstack", gettext("a :tag command will use the tagstack")) |
7 | 316 call <SID>BinOptionG("tgst", &tgst) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
317 call <SID>AddOption("showfulltag", gettext("when completing tags in Insert mode show more info")) |
7 | 318 call <SID>BinOptionG("sft", &sft) |
16447
54ffc82f38a8
patch 8.1.1228: not possible to process tags with a function
Bram Moolenaar <Bram@vim.org>
parents:
15870
diff
changeset
|
319 if has("eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
320 call <SID>AddOption("tagfunc", gettext("a function to be used to perform tag searches")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
321 call append("$", "\t" .. s:local_to_buffer) |
16447
54ffc82f38a8
patch 8.1.1228: not possible to process tags with a function
Bram Moolenaar <Bram@vim.org>
parents:
15870
diff
changeset
|
322 call <SID>OptionL("tfu") |
54ffc82f38a8
patch 8.1.1228: not possible to process tags with a function
Bram Moolenaar <Bram@vim.org>
parents:
15870
diff
changeset
|
323 endif |
7 | 324 if has("cscope") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
325 call <SID>AddOption("cscopeprg", gettext("command for executing cscope")) |
7 | 326 call <SID>OptionG("csprg", &csprg) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
327 call <SID>AddOption("cscopetag", gettext("use cscope for tag commands")) |
7 | 328 call <SID>BinOptionG("cst", &cst) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
329 call <SID>AddOption("cscopetagorder", gettext("0 or 1; the order in which \":cstag\" performs a search")) |
7 | 330 call append("$", " \tset csto=" . &csto) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
331 call <SID>AddOption("cscopeverbose", gettext("give messages when adding a cscope database")) |
7 | 332 call <SID>BinOptionG("csverb", &csverb) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
333 call <SID>AddOption("cscopepathcomp", gettext("how many components of the path to show")) |
7 | 334 call append("$", " \tset cspc=" . &cspc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
335 call <SID>AddOption("cscopequickfix", gettext("when to open a quickfix window for cscope")) |
7 | 336 call <SID>OptionG("csqf", &csqf) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
337 call <SID>AddOption("cscoperelative", gettext("file names in a cscope file are relative to that file")) |
2908 | 338 call <SID>BinOptionG("csre", &csre) |
7 | 339 endif |
340 | |
341 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
342 call <SID>Header(gettext("displaying text")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
343 call <SID>AddOption("scroll", gettext("number of lines to scroll for CTRL-U and CTRL-D")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
344 call append("$", "\t" .. s:local_to_window) |
7 | 345 call <SID>OptionL("scr") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
346 call <SID>AddOption("scrolloff", gettext("number of screen lines to show around the cursor")) |
7 | 347 call append("$", " \tset so=" . &so) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
348 call <SID>AddOption("wrap", gettext("long lines wrap")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
349 call append("$", "\t" .. s:local_to_window) |
13946
c2312fc9fbfe
patch 8.0.1843: entry for 'wrap' in options window is wrong
Christian Brabandt <cb@256bit.org>
parents:
13857
diff
changeset
|
350 call <SID>BinOptionL("wrap") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
351 call <SID>AddOption("linebreak", gettext("wrap long lines at a character in 'breakat'")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
352 call append("$", "\t" .. s:local_to_window) |
7 | 353 call <SID>BinOptionL("lbr") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
354 call <SID>AddOption("breakindent", gettext("preserve indentation in wrapped text")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
355 call append("$", "\t" .. s:local_to_window) |
5995 | 356 call <SID>BinOptionL("bri") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
357 call <SID>AddOption("breakindentopt", gettext("adjust breakindent behaviour")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
358 call append("$", "\t" .. s:local_to_window) |
5995 | 359 call <SID>OptionL("briopt") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
360 call <SID>AddOption("breakat", gettext("which characters might cause a line break")) |
7 | 361 call <SID>OptionG("brk", &brk) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
362 call <SID>AddOption("showbreak", gettext("string to put before wrapped screen lines")) |
7 | 363 call <SID>OptionG("sbr", &sbr) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
364 call <SID>AddOption("sidescroll", gettext("minimal number of columns to scroll horizontally")) |
7 | 365 call append("$", " \tset ss=" . &ss) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
366 call <SID>AddOption("sidescrolloff", gettext("minimal number of columns to keep left and right of the cursor")) |
7 | 367 call append("$", " \tset siso=" . &siso) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
368 call <SID>AddOption("display", gettext("include \"lastline\" to show the last line even if it doesn't fit\ninclude \"uhex\" to show unprintable characters as a hex number")) |
7 | 369 call <SID>OptionG("dy", &dy) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
370 call <SID>AddOption("fillchars", gettext("characters to use for the status line, folds and filler lines")) |
7 | 371 call <SID>OptionG("fcs", &fcs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
372 call <SID>AddOption("cmdheight", gettext("number of lines used for the command-line")) |
7 | 373 call append("$", " \tset ch=" . &ch) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
374 call <SID>AddOption("columns", gettext("width of the display")) |
7 | 375 call append("$", " \tset co=" . &co) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
376 call <SID>AddOption("lines", gettext("number of lines in the display")) |
7 | 377 call append("$", " \tset lines=" . &lines) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
378 call <SID>AddOption("window", gettext("number of lines to scroll for CTRL-F and CTRL-B")) |
2396
6d6d72521a9a
Add 'window' to the options window.
Bram Moolenaar <bram@vim.org>
parents:
2395
diff
changeset
|
379 call append("$", " \tset window=" . &window) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
380 call <SID>AddOption("lazyredraw", gettext("don't redraw while executing macros")) |
7 | 381 call <SID>BinOptionG("lz", &lz) |
1595 | 382 if has("reltime") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
383 call <SID>AddOption("redrawtime", gettext("timeout for 'hlsearch' and :match highlighting in msec")) |
1595 | 384 call append("$", " \tset rdt=" . &rdt) |
385 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
386 call <SID>AddOption("writedelay", gettext("delay in msec for each char written to the display\n(for debugging)")) |
7 | 387 call append("$", " \tset wd=" . &wd) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
388 call <SID>AddOption("list", gettext("show <Tab> as ^I and end-of-line as $")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
389 call append("$", "\t" .. s:local_to_window) |
7 | 390 call <SID>BinOptionL("list") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
391 call <SID>AddOption("listchars", gettext("list of strings used for list mode")) |
7 | 392 call <SID>OptionG("lcs", &lcs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
393 call <SID>AddOption("number", gettext("show the line number for each line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
394 call append("$", "\t" .. s:local_to_window) |
7 | 395 call <SID>BinOptionL("nu") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
396 call <SID>AddOption("relativenumber", gettext("show the relative line number for each line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
397 call append("$", "\t" .. s:local_to_window) |
2178
c6f1aa1e9f32
Add 'relativenumber' patch from Markus Heidelberg.
Bram Moolenaar <bram@vim.org>
parents:
1595
diff
changeset
|
398 call <SID>BinOptionL("rnu") |
13 | 399 if has("linebreak") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
400 call <SID>AddOption("numberwidth", gettext("number of columns to use for the line number")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
401 call append("$", "\t" .. s:local_to_window) |
13 | 402 call <SID>OptionL("nuw") |
403 endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
404 if has("conceal") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
405 call <SID>AddOption("conceallevel", gettext("controls whether concealable text is hidden")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
406 call append("$", "\t" .. s:local_to_window) |
2385
295d53417fc3
Fix 'autochdir' not showing up in :options window. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2341
diff
changeset
|
407 call <SID>OptionL("cole") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
408 call <SID>AddOption("concealcursor", gettext("modes in which text in the cursor line can be concealed")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
409 call append("$", "\t" .. s:local_to_window) |
2385
295d53417fc3
Fix 'autochdir' not showing up in :options window. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2341
diff
changeset
|
410 call <SID>OptionL("cocu") |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
411 endif |
7 | 412 |
413 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
414 call <SID>Header(gettext("syntax, highlighting and spelling")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
415 call <SID>AddOption("background", gettext("\"dark\" or \"light\"; the background color brightness")) |
7 | 416 call <SID>OptionG("bg", &bg) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
417 call <SID>AddOption("filetype", gettext("type of file; triggers the FileType event when set")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
418 call append("$", "\t" .. s:local_to_buffer) |
15729 | 419 call <SID>OptionL("ft") |
7 | 420 if has("syntax") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
421 call <SID>AddOption("syntax", gettext("name of syntax highlighting used")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
422 call append("$", "\t" .. s:local_to_buffer) |
7 | 423 call <SID>OptionL("syn") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
424 call <SID>AddOption("synmaxcol", gettext("maximum column to look for syntax items")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
425 call append("$", "\t" .. s:local_to_buffer) |
409 | 426 call <SID>OptionL("smc") |
7 | 427 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
428 call <SID>AddOption("highlight", gettext("which highlighting to use for various occasions")) |
7 | 429 call <SID>OptionG("hl", &hl) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
430 call <SID>AddOption("hlsearch", gettext("highlight all matches for the last used search pattern")) |
7 | 431 call <SID>BinOptionG("hls", &hls) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
432 call <SID>AddOption("wincolor", gettext("highlight group to use for the window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
433 call append("$", "\t" .. s:local_to_window) |
16808 | 434 call <SID>OptionL("wcr") |
9046
057fb9d0191b
commit https://github.com/vim/vim/commit/8a24b794b89916c8074892e7b25121a21f1fa9c9
Christian Brabandt <cb@256bit.org>
parents:
9042
diff
changeset
|
435 if has("termguicolors") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
436 call <SID>AddOption("termguicolors", gettext("use GUI colors for the terminal")) |
9048
5bb5569bec60
commit https://github.com/vim/vim/commit/868cfc19bb079a16ca58884b551486566f35419b
Christian Brabandt <cb@256bit.org>
parents:
9046
diff
changeset
|
437 call <SID>BinOptionG("tgc", &tgc) |
9042
21bd2230c5cd
commit https://github.com/vim/vim/commit/8e3d1b6326c103cc92f8d07b1161ee5172acf201
Christian Brabandt <cb@256bit.org>
parents:
8962
diff
changeset
|
438 endif |
381 | 439 if has("syntax") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
440 call <SID>AddOption("cursorcolumn", gettext("highlight the screen column of the cursor")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
441 call append("$", "\t" .. s:local_to_window) |
737 | 442 call <SID>BinOptionL("cuc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
443 call <SID>AddOption("cursorline", gettext("highlight the screen line of the cursor")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
444 call append("$", "\t" .. s:local_to_window) |
737 | 445 call <SID>BinOptionL("cul") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
446 call <SID>AddOption("cursorlineopt", gettext("specifies which area 'cursorline' highlights")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
447 call append("$", "\t" .. s:local_to_window) |
18047
6650e3dff8d4
patch 8.1.2019: 'cursorline' always highlights the whole line
Bram Moolenaar <Bram@vim.org>
parents:
17791
diff
changeset
|
448 call <SID>OptionL("culopt") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
449 call <SID>AddOption("colorcolumn", gettext("columns to highlight")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
450 call append("$", "\t" .. s:local_to_window) |
2341 | 451 call <SID>OptionL("cc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
452 call <SID>AddOption("spell", gettext("highlight spelling mistakes")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
453 call append("$", "\t" .. s:local_to_window) |
381 | 454 call <SID>BinOptionL("spell") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
455 call <SID>AddOption("spelllang", gettext("list of accepted languages")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
456 call append("$", "\t" .. s:local_to_buffer) |
381 | 457 call <SID>OptionL("spl") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
458 call <SID>AddOption("spellfile", gettext("file that \"zg\" adds good words to")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
459 call append("$", "\t" .. s:local_to_buffer) |
381 | 460 call <SID>OptionL("spf") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
461 call <SID>AddOption("spellcapcheck", gettext("pattern to locate the end of a sentence")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
462 call append("$", "\t" .. s:local_to_buffer) |
393 | 463 call <SID>OptionL("spc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
464 call <SID>AddOption("spelloptions", gettext("flags to change how spell checking works")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
465 call append("$", "\t" .. s:local_to_buffer) |
20856 | 466 call <SID>OptionL("spo") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
467 call <SID>AddOption("spellsuggest", gettext("methods used to suggest corrections")) |
381 | 468 call <SID>OptionG("sps", &sps) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
469 call <SID>AddOption("mkspellmem", gettext("amount of memory used by :mkspell before compressing")) |
500 | 470 call <SID>OptionG("msm", &msm) |
381 | 471 endif |
7 | 472 |
473 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
474 call <SID>Header(gettext("multiple windows")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
475 call <SID>AddOption("laststatus", gettext("0, 1 or 2; when to use a status line for the last window")) |
7 | 476 call append("$", " \tset ls=" . &ls) |
477 if has("statusline") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
478 call <SID>AddOption("statusline", gettext("alternate format to be used for a status line")) |
7 | 479 call <SID>OptionG("stl", &stl) |
480 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
481 call <SID>AddOption("equalalways", gettext("make all windows the same size when adding/removing windows")) |
7 | 482 call <SID>BinOptionG("ea", &ea) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
483 call <SID>AddOption("eadirection", gettext("in which direction 'equalalways' works: \"ver\", \"hor\" or \"both\"")) |
15729 | 484 call <SID>OptionG("ead", &ead) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
485 call <SID>AddOption("winheight", gettext("minimal number of lines used for the current window")) |
7 | 486 call append("$", " \tset wh=" . &wh) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
487 call <SID>AddOption("winminheight", gettext("minimal number of lines used for any window")) |
7 | 488 call append("$", " \tset wmh=" . &wmh) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
489 call <SID>AddOption("winfixheight", gettext("keep the height of the window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
490 call append("$", "\t" .. s:local_to_window) |
7 | 491 call <SID>BinOptionL("wfh") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
492 call <SID>AddOption("winfixwidth", gettext("keep the width of the window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
493 call append("$", "\t" .. s:local_to_window) |
779 | 494 call <SID>BinOptionL("wfw") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
495 call <SID>AddOption("winwidth", gettext("minimal number of columns used for the current window")) |
15729 | 496 call append("$", " \tset wiw=" . &wiw) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
497 call <SID>AddOption("winminwidth", gettext("minimal number of columns used for any window")) |
15729 | 498 call append("$", " \tset wmw=" . &wmw) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
499 call <SID>AddOption("helpheight", gettext("initial height of the help window")) |
7 | 500 call append("$", " \tset hh=" . &hh) |
501 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
502 call <SID>AddOption("previewpopup", gettext("use a popup window for preview")) |
17433 | 503 call append("$", " \tset pvp=" . &pvp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
504 call <SID>AddOption("previewheight", gettext("default height for the preview window")) |
7 | 505 call append("$", " \tset pvh=" . &pvh) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
506 call <SID>AddOption("previewwindow", gettext("identifies the preview window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
507 call append("$", "\t" .. s:local_to_window) |
7 | 508 call <SID>BinOptionL("pvw") |
509 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
510 call <SID>AddOption("hidden", gettext("don't unload a buffer when no longer shown in a window")) |
7 | 511 call <SID>BinOptionG("hid", &hid) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
512 call <SID>AddOption("switchbuf", gettext("\"useopen\" and/or \"split\"; which window to use when jumping\nto a buffer")) |
7 | 513 call <SID>OptionG("swb", &swb) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
514 call <SID>AddOption("splitbelow", gettext("a new window is put below the current one")) |
7 | 515 call <SID>BinOptionG("sb", &sb) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
516 call <SID>AddOption("splitright", gettext("a new window is put right of the current one")) |
15729 | 517 call <SID>BinOptionG("spr", &spr) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
518 call <SID>AddOption("scrollbind", gettext("this window scrolls together with other bound windows")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
519 call append("$", "\t" .. s:local_to_window) |
15729 | 520 call <SID>BinOptionL("scb") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
521 call <SID>AddOption("scrollopt", gettext("\"ver\", \"hor\" and/or \"jump\"; list of options for 'scrollbind'")) |
15729 | 522 call <SID>OptionG("sbo", &sbo) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
523 call <SID>AddOption("cursorbind", gettext("this window's cursor moves together with other bound windows")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
524 call append("$", "\t" .. s:local_to_window) |
15729 | 525 call <SID>BinOptionL("crb") |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11077
diff
changeset
|
526 if has("terminal") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
527 call <SID>AddOption("termwinsize", gettext("size of a terminal window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
528 call append("$", "\t" .. s:local_to_window) |
13742
a34b1323286c
patch 8.0.1743: terminal window options are named inconsistently
Christian Brabandt <cb@256bit.org>
parents:
13346
diff
changeset
|
529 call <SID>OptionL("tws") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
530 call <SID>AddOption("termwinkey", gettext("key that precedes Vim commands in a terminal window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
531 call append("$", "\t" .. s:local_to_window) |
13742
a34b1323286c
patch 8.0.1743: terminal window options are named inconsistently
Christian Brabandt <cb@256bit.org>
parents:
13346
diff
changeset
|
532 call <SID>OptionL("twk") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
533 call <SID>AddOption("termwinscroll", gettext("max number of lines to keep for scrollback in a terminal window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
534 call append("$", "\t" .. s:local_to_window) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
535 call <SID>OptionL("twsl") |
15746
c017195b121b
patch 8.1.0880: MS-Windows: inconsistent selection of winpty/conpty
Bram Moolenaar <Bram@vim.org>
parents:
15729
diff
changeset
|
536 if has('win32') |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
537 call <SID>AddOption("termwintype", gettext("type of pty to use for a terminal window")) |
15746
c017195b121b
patch 8.1.0880: MS-Windows: inconsistent selection of winpty/conpty
Bram Moolenaar <Bram@vim.org>
parents:
15729
diff
changeset
|
538 call <SID>OptionG("twt", &twt) |
c017195b121b
patch 8.1.0880: MS-Windows: inconsistent selection of winpty/conpty
Bram Moolenaar <Bram@vim.org>
parents:
15729
diff
changeset
|
539 endif |
12182
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
540 if exists("&winptydll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
541 call <SID>AddOption("winptydll", gettext("name of the winpty dynamic library")) |
12182
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
542 call <SID>OptionG("winptydll", &winptydll) |
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
543 endif |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11077
diff
changeset
|
544 endif |
7 | 545 |
546 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
547 call <SID>Header(gettext("multiple tab pages")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
548 call <SID>AddOption("showtabline", gettext("0, 1 or 2; when to use a tab pages line")) |
714 | 549 call append("$", " \tset stal=" . &stal) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
550 call <SID>AddOption("tabpagemax", gettext("maximum number of tab pages to open for -p and \"tab all\"")) |
714 | 551 call append("$", " \tset tpm=" . &tpm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
552 call <SID>AddOption("tabline", gettext("custom tab pages line")) |
714 | 553 call <SID>OptionG("tal", &tal) |
842 | 554 if has("gui") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
555 call <SID>AddOption("guitablabel", gettext("custom tab page label for the GUI")) |
842 | 556 call <SID>OptionG("gtl", >l) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
557 call <SID>AddOption("guitabtooltip", gettext("custom tab page tooltip for the GUI")) |
842 | 558 call <SID>OptionG("gtt", >t) |
559 endif | |
714 | 560 |
561 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
562 call <SID>Header(gettext("terminal")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
563 call <SID>AddOption("term", gettext("name of the used terminal")) |
7 | 564 call <SID>OptionG("term", &term) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
565 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
566 call <SID>AddOption("ttytype", gettext("alias for 'term'")) |
7 | 567 call <SID>OptionG("tty", &tty) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
568 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
569 call <SID>AddOption("ttybuiltin", gettext("check built-in termcaps first")) |
7 | 570 call <SID>BinOptionG("tbi", &tbi) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
571 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
572 call <SID>AddOption("ttyfast", gettext("terminal connection is fast")) |
7 | 573 call <SID>BinOptionG("tf", &tf) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
574 |
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
575 call <SID>AddOption("xtermcodes", gettext("request terminal key codes when an xterm is detected")) |
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
576 call <SID>BinOptionG("xtermcodes", &xtermcodes) |
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
577 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
578 call <SID>AddOption("weirdinvert", gettext("terminal that requires extra redrawing")) |
7 | 579 call <SID>BinOptionG("wiv", &wiv) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
580 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
581 call <SID>AddOption("esckeys", gettext("recognize keys that start with <Esc> in Insert mode")) |
7 | 582 call <SID>BinOptionG("ek", &ek) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
583 call <SID>AddOption("scrolljump", gettext("minimal number of lines to scroll at a time")) |
7 | 584 call append("$", " \tset sj=" . &sj) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
585 call <SID>AddOption("ttyscroll", gettext("maximum number of lines to use scrolling instead of redrawing")) |
7 | 586 call append("$", " \tset tsl=" . &tsl) |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9048
diff
changeset
|
587 if has("gui") || has("win32") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
588 call <SID>AddOption("guicursor", gettext("specifies what the cursor looks like in different modes")) |
7 | 589 call <SID>OptionG("gcr", &gcr) |
590 endif | |
591 if has("title") | |
592 let &title = s:old_title | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
593 call <SID>AddOption("title", gettext("show info in the window title")) |
7 | 594 call <SID>BinOptionG("title", &title) |
595 set notitle | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
596 call <SID>AddOption("titlelen", gettext("percentage of 'columns' used for the window title")) |
7 | 597 call append("$", " \tset titlelen=" . &titlelen) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
598 call <SID>AddOption("titlestring", gettext("when not empty, string to be used for the window title")) |
7 | 599 call <SID>OptionG("titlestring", &titlestring) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
600 call <SID>AddOption("titleold", gettext("string to restore the title to when exiting Vim")) |
7 | 601 call <SID>OptionG("titleold", &titleold) |
602 let &icon = s:old_icon | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
603 call <SID>AddOption("icon", gettext("set the text of the icon for this window")) |
7 | 604 call <SID>BinOptionG("icon", &icon) |
605 set noicon | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
606 call <SID>AddOption("iconstring", gettext("when not empty, text for the icon of this window")) |
7 | 607 call <SID>OptionG("iconstring", &iconstring) |
608 endif | |
609 if has("win32") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
610 call <SID>AddOption("restorescreen", gettext("restore the screen contents when exiting Vim")) |
7 | 611 call <SID>BinOptionG("rs", &rs) |
612 endif | |
613 | |
614 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
615 call <SID>Header(gettext("using the mouse")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
616 call <SID>AddOption("mouse", gettext("list of flags for using the mouse")) |
7 | 617 call <SID>OptionG("mouse", &mouse) |
618 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
619 call <SID>AddOption("mousefocus", gettext("the window with the mouse pointer becomes the current one")) |
7 | 620 call <SID>BinOptionG("mousef", &mousef) |
18594 | 621 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
622 call <SID>AddOption("scrollfocus", gettext("the window with the mouse pointer scrolls with the mouse wheel")) |
18594 | 623 call <SID>BinOptionG("scf", &scf) |
624 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
625 call <SID>AddOption("mousehide", gettext("hide the mouse pointer while typing")) |
7 | 626 call <SID>BinOptionG("mh", &mh) |
627 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
628 call <SID>AddOption("mousemodel", gettext("\"extend\", \"popup\" or \"popup_setpos\"; what the right\nmouse button is used for")) |
7 | 629 call <SID>OptionG("mousem", &mousem) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
630 call <SID>AddOption("mousetime", gettext("maximum time in msec to recognize a double-click")) |
7 | 631 call append("$", " \tset mouset=" . &mouset) |
22723 | 632 call <SID>AddOption("ttymouse", gettext("\"xterm\", \"xterm2\", \"sgr\", etc.; type of mouse")) |
7 | 633 call <SID>OptionG("ttym", &ttym) |
634 if has("mouseshape") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
635 call <SID>AddOption("mouseshape", gettext("what the mouse pointer looks like in different modes")) |
7 | 636 call <SID>OptionG("mouses", &mouses) |
637 endif | |
638 | |
639 | |
640 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
641 call <SID>Header(gettext("GUI")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
642 call <SID>AddOption("guifont", gettext("list of font names to be used in the GUI")) |
7 | 643 call <SID>OptionG("gfn", &gfn) |
644 if has("xfontset") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
645 call <SID>AddOption("guifontset", gettext("pair of fonts to be used, for multibyte editing")) |
7 | 646 call <SID>OptionG("gfs", &gfs) |
647 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
648 call <SID>AddOption("guifontwide", gettext("list of font names to be used for double-wide characters")) |
7 | 649 call <SID>OptionG("gfw", &gfw) |
650 if has("mac") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
651 call <SID>AddOption("antialias", gettext("use smooth, antialiased fonts")) |
7 | 652 call <SID>BinOptionG("anti", &anti) |
653 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
654 call <SID>AddOption("guioptions", gettext("list of flags that specify how the GUI works")) |
7 | 655 call <SID>OptionG("go", &go) |
656 if has("gui_gtk") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
657 call <SID>AddOption("toolbar", gettext("\"icons\", \"text\" and/or \"tooltips\"; how to show the toolbar")) |
7 | 658 call <SID>OptionG("tb", &tb) |
659 if has("gui_gtk2") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
660 call <SID>AddOption("toolbariconsize", gettext("size of toolbar icons")) |
7 | 661 call <SID>OptionG("tbis", &tbis) |
662 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
663 call <SID>AddOption("guiheadroom", gettext("room (in pixels) left above/below the window")) |
7 | 664 call append("$", " \tset ghr=" . &ghr) |
26100 | 665 call <SID>AddOption("guiligatures", gettext("list of ASCII characters that can be combined into complex shapes")) |
26050 | 666 call <SID>OptionG("gli", &gli) |
7 | 667 endif |
6153 | 668 if has("directx") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
669 call <SID>AddOption("renderoptions", gettext("options for text rendering")) |
6153 | 670 call <SID>OptionG("rop", &rop) |
671 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
672 call <SID>AddOption("guipty", gettext("use a pseudo-tty for I/O to external commands")) |
7 | 673 call <SID>BinOptionG("guipty", &guipty) |
674 if has("browse") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
675 call <SID>AddOption("browsedir", gettext("\"last\", \"buffer\" or \"current\": which directory used for the file browser")) |
7 | 676 call <SID>OptionG("bsdir", &bsdir) |
677 endif | |
678 if has("multi_lang") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
679 call <SID>AddOption("langmenu", gettext("language to be used for the menus")) |
7 | 680 call <SID>OptionG("langmenu", &lm) |
681 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
682 call <SID>AddOption("menuitems", gettext("maximum number of items in one menu")) |
7 | 683 call append("$", " \tset mis=" . &mis) |
684 if has("winaltkeys") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
685 call <SID>AddOption("winaltkeys", gettext("\"no\", \"yes\" or \"menu\"; how to use the ALT key")) |
7 | 686 call <SID>OptionG("wak", &wak) |
687 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
688 call <SID>AddOption("linespace", gettext("number of pixel lines to use between characters")) |
7 | 689 call append("$", " \tset lsp=" . &lsp) |
12909 | 690 if has("balloon_eval") || has("balloon_eval_term") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
691 call <SID>AddOption("balloondelay", gettext("delay in milliseconds before a balloon may pop up")) |
7 | 692 call append("$", " \tset bdlay=" . &bdlay) |
12909 | 693 if has("balloon_eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
694 call <SID>AddOption("ballooneval", gettext("use balloon evaluation in the GUI")) |
12909 | 695 call <SID>BinOptionG("beval", &beval) |
696 endif | |
697 if has("balloon_eval_term") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
698 call <SID>AddOption("balloonevalterm", gettext("use balloon evaluation in the terminal")) |
12909 | 699 call <SID>BinOptionG("bevalterm", &beval) |
700 endif | |
184 | 701 if has("eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
702 call <SID>AddOption("balloonexpr", gettext("expression to show in balloon eval")) |
184 | 703 call append("$", " \tset bexpr=" . &bexpr) |
7 | 704 endif |
705 endif | |
706 endif | |
707 | |
708 if has("printer") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
709 call <SID>Header(gettext("printing")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
710 call <SID>AddOption("printoptions", gettext("list of items that control the format of :hardcopy output")) |
15 | 711 call <SID>OptionG("popt", &popt) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
712 call <SID>AddOption("printdevice", gettext("name of the printer to be used for :hardcopy")) |
7 | 713 call <SID>OptionG("pdev", &pdev) |
15 | 714 if has("postscript") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
715 call <SID>AddOption("printexpr", gettext("expression used to print the PostScript file for :hardcopy")) |
15 | 716 call <SID>OptionG("pexpr", &pexpr) |
717 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
718 call <SID>AddOption("printfont", gettext("name of the font to be used for :hardcopy")) |
7 | 719 call <SID>OptionG("pfn", &pfn) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
720 call <SID>AddOption("printheader", gettext("format of the header used for :hardcopy")) |
7 | 721 call <SID>OptionG("pheader", &pheader) |
15 | 722 if has("postscript") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
723 call <SID>AddOption("printencoding", gettext("encoding used to print the PostScript file for :hardcopy")) |
15 | 724 call <SID>OptionG("penc", &penc) |
725 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
726 call <SID>AddOption("printmbcharset", gettext("the CJK character set to be used for CJK output from :hardcopy")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
727 call <SID>OptionG("pmbcs", &pmbcs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
728 call <SID>AddOption("printmbfont", gettext("list of font names to be used for CJK output from :hardcopy")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
729 call <SID>OptionG("pmbfn", &pmbfn) |
7 | 730 endif |
731 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
732 call <SID>Header(gettext("messages and info")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
733 call <SID>AddOption("terse", gettext("add 's' flag in 'shortmess' (don't show search message)")) |
7 | 734 call <SID>BinOptionG("terse", &terse) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
735 call <SID>AddOption("shortmess", gettext("list of flags to make messages shorter")) |
7 | 736 call <SID>OptionG("shm", &shm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
737 call <SID>AddOption("showcmd", gettext("show (partial) command keys in the status line")) |
7 | 738 let &sc = s:old_sc |
739 call <SID>BinOptionG("sc", &sc) | |
740 set nosc | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
741 call <SID>AddOption("showmode", gettext("display the current mode in the status line")) |
7 | 742 call <SID>BinOptionG("smd", &smd) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
743 call <SID>AddOption("ruler", gettext("show cursor position below each window")) |
7 | 744 let &ru = s:old_ru |
745 call <SID>BinOptionG("ru", &ru) | |
746 set noru | |
747 if has("statusline") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
748 call <SID>AddOption("rulerformat", gettext("alternate format to be used for the ruler")) |
7 | 749 call <SID>OptionG("ruf", &ruf) |
750 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
751 call <SID>AddOption("report", gettext("threshold for reporting number of changed lines")) |
7 | 752 call append("$", " \tset report=" . &report) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
753 call <SID>AddOption("verbose", gettext("the higher the more messages are given")) |
7 | 754 call append("$", " \tset vbs=" . &vbs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
755 call <SID>AddOption("verbosefile", gettext("file to write messages in")) |
381 | 756 call <SID>OptionG("vfile", &vfile) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
757 call <SID>AddOption("more", gettext("pause listings when the screen is full")) |
7 | 758 call <SID>BinOptionG("more", &more) |
759 if has("dialog_con") || has("dialog_gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
760 call <SID>AddOption("confirm", gettext("start a dialog when a command fails")) |
7 | 761 call <SID>BinOptionG("cf", &cf) |
762 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
763 call <SID>AddOption("errorbells", gettext("ring the bell for error messages")) |
7 | 764 call <SID>BinOptionG("eb", &eb) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
765 call <SID>AddOption("visualbell", gettext("use a visual bell instead of beeping")) |
7 | 766 call <SID>BinOptionG("vb", &vb) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
767 call <SID>AddOption("belloff", gettext("do not ring the bell for these reasons")) |
6956
ad7ee058c03b
Correct optwin script, update PHP complete.
Bram Moolenaar <bram@vim.org>
parents:
6951
diff
changeset
|
768 call <SID>OptionG("belloff", &belloff) |
7 | 769 if has("multi_lang") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
770 call <SID>AddOption("helplang", gettext("list of preferred languages for finding help")) |
7 | 771 call <SID>OptionG("hlg", &hlg) |
772 endif | |
773 | |
774 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
775 call <SID>Header(gettext("selecting text")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
776 call <SID>AddOption("selection", gettext("\"old\", \"inclusive\" or \"exclusive\"; how selecting text behaves")) |
7 | 777 call <SID>OptionG("sel", &sel) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
778 call <SID>AddOption("selectmode", gettext("\"mouse\", \"key\" and/or \"cmd\"; when to start Select mode\ninstead of Visual mode")) |
7 | 779 call <SID>OptionG("slm", &slm) |
780 if has("clipboard") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
781 call <SID>AddOption("clipboard", gettext("\"unnamed\" to use the * register like unnamed register\n\"autoselect\" to always put selected text on the clipboard")) |
7 | 782 call <SID>OptionG("cb", &cb) |
783 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
784 call <SID>AddOption("keymodel", gettext("\"startsel\" and/or \"stopsel\"; what special keys can do")) |
7 | 785 call <SID>OptionG("km", &km) |
786 | |
787 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
788 call <SID>Header(gettext("editing text")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
789 call <SID>AddOption("undolevels", gettext("maximum number of changes that can be undone")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
790 call append("$", "\t" .. s:global_or_local) |
13346
4dbf2a6972e6
patch 8.0.1547: undo in the options window makes it empty
Christian Brabandt <cb@256bit.org>
parents:
13341
diff
changeset
|
791 call append("$", " \tset ul=" . s:old_ul) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
792 call <SID>AddOption("undofile", gettext("automatically save and restore undo history")) |
8958
12392eb2923a
commit https://github.com/vim/vim/commit/4694a17d1ec08382f996990a7fac1ac60197ec81
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
793 call <SID>BinOptionG("udf", &udf) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
794 call <SID>AddOption("undodir", gettext("list of directories for undo files")) |
8958
12392eb2923a
commit https://github.com/vim/vim/commit/4694a17d1ec08382f996990a7fac1ac60197ec81
Christian Brabandt <cb@256bit.org>
parents:
8673
diff
changeset
|
795 call <SID>OptionG("udir", &udir) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
796 call <SID>AddOption("undoreload", gettext("maximum number lines to save for undo on a buffer reload")) |
2394
a3aca345aafa
Add the 'undoreload' option to be able to undo a file reload.
Bram Moolenaar <bram@vim.org>
parents:
2386
diff
changeset
|
797 call append("$", " \tset ur=" . &ur) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
798 call <SID>AddOption("modified", gettext("changes have been made and not written to a file")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
799 call append("$", "\t" .. s:local_to_buffer) |
7 | 800 call <SID>BinOptionL("mod") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
801 call <SID>AddOption("readonly", gettext("buffer is not to be written")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
802 call append("$", "\t" .. s:local_to_buffer) |
7 | 803 call <SID>BinOptionL("ro") |
22723 | 804 call <SID>AddOption("modifiable", gettext("changes to the text are possible")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
805 call append("$", "\t" .. s:local_to_buffer) |
7 | 806 call <SID>BinOptionL("ma") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
807 call <SID>AddOption("textwidth", gettext("line length above which to break a line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
808 call append("$", "\t" .. s:local_to_buffer) |
7 | 809 call <SID>OptionL("tw") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
810 call <SID>AddOption("wrapmargin", gettext("margin from the right in which to break a line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
811 call append("$", "\t" .. s:local_to_buffer) |
7 | 812 call <SID>OptionL("wm") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
813 call <SID>AddOption("backspace", gettext("specifies what <BS>, CTRL-W, etc. can do in Insert mode")) |
7 | 814 call append("$", " \tset bs=" . &bs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
815 call <SID>AddOption("comments", gettext("definition of what comment lines look like")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
816 call append("$", "\t" .. s:local_to_buffer) |
7 | 817 call <SID>OptionL("com") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
818 call <SID>AddOption("formatoptions", gettext("list of flags that tell how automatic formatting works")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
819 call append("$", "\t" .. s:local_to_buffer) |
7 | 820 call <SID>OptionL("fo") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
821 call <SID>AddOption("formatlistpat", gettext("pattern to recognize a numbered list")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
822 call append("$", "\t" .. s:local_to_buffer) |
41 | 823 call <SID>OptionL("flp") |
714 | 824 if has("eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
825 call <SID>AddOption("formatexpr", gettext("expression used for \"gq\" to format lines")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
826 call append("$", "\t" .. s:local_to_buffer) |
714 | 827 call <SID>OptionL("fex") |
828 endif | |
7 | 829 if has("insert_expand") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
830 call <SID>AddOption("complete", gettext("specifies how Insert mode completion works for CTRL-N and CTRL-P")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
831 call append("$", "\t" .. s:local_to_buffer) |
7 | 832 call <SID>OptionL("cpt") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
833 call <SID>AddOption("completeopt", gettext("whether to use a popup menu for Insert mode completion")) |
539 | 834 call <SID>OptionG("cot", &cot) |
17791
55c167b08c2b
patch 8.1.1892: missing index entry and option menu for 'completepopup'
Bram Moolenaar <Bram@vim.org>
parents:
17667
diff
changeset
|
835 if exists("+completepopup") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
836 call <SID>AddOption("completepopup", gettext("options for the Insert mode completion info popup")) |
17791
55c167b08c2b
patch 8.1.1892: missing index entry and option menu for 'completepopup'
Bram Moolenaar <Bram@vim.org>
parents:
17667
diff
changeset
|
837 call <SID>OptionG("cpp", &cpp) |
55c167b08c2b
patch 8.1.1892: missing index entry and option menu for 'completepopup'
Bram Moolenaar <Bram@vim.org>
parents:
17667
diff
changeset
|
838 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
839 call <SID>AddOption("pumheight", gettext("maximum height of the popup menu")) |
771 | 840 call <SID>OptionG("ph", &ph) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
841 call <SID>AddOption("pumwidth", gettext("minimum width of the popup menu")) |
13341
acd7eaa13d2b
Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents:
13154
diff
changeset
|
842 call <SID>OptionG("pw", &pw) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
843 call <SID>AddOption("completefunc", gettext("user defined function for Insert mode completion")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
844 call append("$", "\t" .. s:local_to_buffer) |
12 | 845 call <SID>OptionL("cfu") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
846 call <SID>AddOption("omnifunc", gettext("function for filetype-specific Insert mode completion")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
847 call append("$", "\t" .. s:local_to_buffer) |
502 | 848 call <SID>OptionL("ofu") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
849 call <SID>AddOption("dictionary", gettext("list of dictionary files for keyword completion")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
850 call append("$", "\t" .. s:global_or_local) |
7 | 851 call <SID>OptionG("dict", &dict) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
852 call <SID>AddOption("thesaurus", gettext("list of thesaurus files for keyword completion")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
853 call append("$", "\t" .. s:global_or_local) |
7 | 854 call <SID>OptionG("tsr", &tsr) |
26050 | 855 call <SID>AddOption("thesaurusfunc", gettext("function used for thesaurus completion")) |
856 call append("$", "\t" .. s:global_or_local) | |
857 call <SID>OptionG("tsrfu", &tsrfu) | |
7 | 858 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
859 call <SID>AddOption("infercase", gettext("adjust case of a keyword completion match")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
860 call append("$", "\t" .. s:local_to_buffer) |
7 | 861 call <SID>BinOptionL("inf") |
862 if has("digraphs") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
863 call <SID>AddOption("digraph", gettext("enable entering digraphs with c1 <BS> c2")) |
7 | 864 call <SID>BinOptionG("dg", &dg) |
865 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
866 call <SID>AddOption("tildeop", gettext("the \"~\" command behaves like an operator")) |
7 | 867 call <SID>BinOptionG("top", &top) |
22824 | 868 call <SID>AddOption("operatorfunc", gettext("function called for the \"g@\" operator")) |
625 | 869 call <SID>OptionG("opfunc", &opfunc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
870 call <SID>AddOption("showmatch", gettext("when inserting a bracket, briefly jump to its match")) |
7 | 871 call <SID>BinOptionG("sm", &sm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
872 call <SID>AddOption("matchtime", gettext("tenth of a second to show a match for 'showmatch'")) |
7 | 873 call append("$", " \tset mat=" . &mat) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
874 call <SID>AddOption("matchpairs", gettext("list of pairs that match for the \"%\" command")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
875 call append("$", "\t" .. s:local_to_buffer) |
7 | 876 call <SID>OptionL("mps") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
877 call <SID>AddOption("joinspaces", gettext("use two spaces after '.' when joining a line")) |
7 | 878 call <SID>BinOptionG("js", &js) |
22723 | 879 call <SID>AddOption("nrformats", gettext("\"alpha\", \"octal\", \"hex\", \"bin\" and/or \"unsigned\"; number formats\nrecognized for CTRL-A and CTRL-X commands")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
880 call append("$", "\t" .. s:local_to_buffer) |
7 | 881 call <SID>OptionL("nf") |
882 | |
883 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
884 call <SID>Header(gettext("tabs and indenting")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
885 call <SID>AddOption("tabstop", gettext("number of spaces a <Tab> in the text stands for")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
886 call append("$", "\t" .. s:local_to_buffer) |
7 | 887 call <SID>OptionL("ts") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
888 call <SID>AddOption("shiftwidth", gettext("number of spaces used for each step of (auto)indent")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
889 call append("$", "\t" .. s:local_to_buffer) |
7 | 890 call <SID>OptionL("sw") |
14175
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13946
diff
changeset
|
891 if has("vartabs") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
892 call <SID>AddOption("vartabstop", gettext("list of number of spaces a tab counts for")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
893 call append("$", "\t" .. s:local_to_buffer) |
14175
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13946
diff
changeset
|
894 call <SID>OptionL("vts") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
895 call <SID>AddOption("varsofttabstop", gettext("list of number of spaces a soft tabsstop counts for")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
896 call append("$", "\t" .. s:local_to_buffer) |
14175
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13946
diff
changeset
|
897 call <SID>OptionL("vsts") |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13946
diff
changeset
|
898 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
899 call <SID>AddOption("smarttab", gettext("a <Tab> in an indent inserts 'shiftwidth' spaces")) |
7 | 900 call <SID>BinOptionG("sta", &sta) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
901 call <SID>AddOption("softtabstop", gettext("if non-zero, number of spaces to insert for a <Tab>")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
902 call append("$", "\t" .. s:local_to_buffer) |
7 | 903 call <SID>OptionL("sts") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
904 call <SID>AddOption("shiftround", gettext("round to 'shiftwidth' for \"<<\" and \">>\"")) |
7 | 905 call <SID>BinOptionG("sr", &sr) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
906 call <SID>AddOption("expandtab", gettext("expand <Tab> to spaces in Insert mode")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
907 call append("$", "\t" .. s:local_to_buffer) |
7 | 908 call <SID>BinOptionL("et") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
909 call <SID>AddOption("autoindent", gettext("automatically set the indent of a new line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
910 call append("$", "\t" .. s:local_to_buffer) |
7 | 911 call <SID>BinOptionL("ai") |
912 if has("smartindent") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
913 call <SID>AddOption("smartindent", gettext("do clever autoindenting")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
914 call append("$", "\t" .. s:local_to_buffer) |
7 | 915 call <SID>BinOptionL("si") |
916 endif | |
917 if has("cindent") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
918 call <SID>AddOption("cindent", gettext("enable specific indenting for C code")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
919 call append("$", "\t" .. s:local_to_buffer) |
7 | 920 call <SID>BinOptionL("cin") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
921 call <SID>AddOption("cinoptions", gettext("options for C-indenting")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
922 call append("$", "\t" .. s:local_to_buffer) |
7 | 923 call <SID>OptionL("cino") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
924 call <SID>AddOption("cinkeys", gettext("keys that trigger C-indenting in Insert mode")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
925 call append("$", "\t" .. s:local_to_buffer) |
7 | 926 call <SID>OptionL("cink") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
927 call <SID>AddOption("cinwords", gettext("list of words that cause more C-indent")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
928 call append("$", "\t" .. s:local_to_buffer) |
7 | 929 call <SID>OptionL("cinw") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
930 call <SID>AddOption("indentexpr", gettext("expression used to obtain the indent of a line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
931 call append("$", "\t" .. s:local_to_buffer) |
7 | 932 call <SID>OptionL("inde") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
933 call <SID>AddOption("indentkeys", gettext("keys that trigger indenting with 'indentexpr' in Insert mode")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
934 call append("$", "\t" .. s:local_to_buffer) |
7 | 935 call <SID>OptionL("indk") |
936 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
937 call <SID>AddOption("copyindent", gettext("copy whitespace for indenting from previous line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
938 call append("$", "\t" .. s:local_to_buffer) |
7 | 939 call <SID>BinOptionL("ci") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
940 call <SID>AddOption("preserveindent", gettext("preserve kind of whitespace when changing indent")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
941 call append("$", "\t" .. s:local_to_buffer) |
7 | 942 call <SID>BinOptionL("pi") |
943 if has("lispindent") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
944 call <SID>AddOption("lisp", gettext("enable lisp mode")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
945 call append("$", "\t" .. s:local_to_buffer) |
7 | 946 call <SID>BinOptionL("lisp") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
947 call <SID>AddOption("lispwords", gettext("words that change how lisp indenting works")) |
5772 | 948 call <SID>OptionL("lw") |
7 | 949 endif |
950 | |
951 | |
952 if has("folding") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
953 call <SID>Header(gettext("folding")) |
22723 | 954 call <SID>AddOption("foldenable", gettext("unset to display all folds open")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
955 call append("$", "\t" .. s:local_to_window) |
7 | 956 call <SID>BinOptionL("fen") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
957 call <SID>AddOption("foldlevel", gettext("folds with a level higher than this number will be closed")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
958 call append("$", "\t" .. s:local_to_window) |
7 | 959 call <SID>OptionL("fdl") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
960 call <SID>AddOption("foldlevelstart", gettext("value for 'foldlevel' when starting to edit a file")) |
7 | 961 call append("$", " \tset fdls=" . &fdls) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
962 call <SID>AddOption("foldcolumn", gettext("width of the column used to indicate folds")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
963 call append("$", "\t" .. s:local_to_window) |
7 | 964 call <SID>OptionL("fdc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
965 call <SID>AddOption("foldtext", gettext("expression used to display the text of a closed fold")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
966 call append("$", "\t" .. s:local_to_window) |
7 | 967 call <SID>OptionL("fdt") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
968 call <SID>AddOption("foldclose", gettext("set to \"all\" to close a fold when the cursor leaves it")) |
7 | 969 call <SID>OptionG("fcl", &fcl) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
970 call <SID>AddOption("foldopen", gettext("specifies for which commands a fold will be opened")) |
7 | 971 call <SID>OptionG("fdo", &fdo) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
972 call <SID>AddOption("foldminlines", gettext("minimum number of screen lines for a fold to be closed")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
973 call append("$", "\t" .. s:local_to_window) |
7 | 974 call <SID>OptionL("fml") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
975 call <SID>AddOption("commentstring", gettext("template for comments; used to put the marker in")) |
7 | 976 call <SID>OptionL("cms") |
22723 | 977 call <SID>AddOption("foldmethod", gettext("folding type: \"manual\", \"indent\", \"expr\", \"marker\",\n\"syntax\" or \"diff\"")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
978 call append("$", "\t" .. s:local_to_window) |
7 | 979 call <SID>OptionL("fdm") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
980 call <SID>AddOption("foldexpr", gettext("expression used when 'foldmethod' is \"expr\"")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
981 call append("$", "\t" .. s:local_to_window) |
7 | 982 call <SID>OptionL("fde") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
983 call <SID>AddOption("foldignore", gettext("used to ignore lines when 'foldmethod' is \"indent\"")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
984 call append("$", "\t" .. s:local_to_window) |
7 | 985 call <SID>OptionL("fdi") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
986 call <SID>AddOption("foldmarker", gettext("markers used when 'foldmethod' is \"marker\"")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
987 call append("$", "\t" .. s:local_to_window) |
7 | 988 call <SID>OptionL("fmr") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
989 call <SID>AddOption("foldnestmax", gettext("maximum fold depth for when 'foldmethod' is \"indent\" or \"syntax\"")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
990 call append("$", "\t" .. s:local_to_window) |
7 | 991 call <SID>OptionL("fdn") |
992 endif | |
993 | |
994 | |
995 if has("diff") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
996 call <SID>Header(gettext("diff mode")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
997 call <SID>AddOption("diff", gettext("use diff mode for the current window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
998 call append("$", "\t" .. s:local_to_window) |
7 | 999 call <SID>BinOptionL("diff") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1000 call <SID>AddOption("diffopt", gettext("options for using diff mode")) |
7 | 1001 call <SID>OptionG("dip", &dip) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1002 call <SID>AddOption("diffexpr", gettext("expression used to obtain a diff file")) |
7 | 1003 call <SID>OptionG("dex", &dex) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1004 call <SID>AddOption("patchexpr", gettext("expression used to patch a file")) |
7 | 1005 call <SID>OptionG("pex", &pex) |
1006 endif | |
1007 | |
1008 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1009 call <SID>Header(gettext("mapping")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1010 call <SID>AddOption("maxmapdepth", gettext("maximum depth of mapping")) |
7 | 1011 call append("$", " \tset mmd=" . &mmd) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1012 call <SID>AddOption("remap", gettext("recognize mappings in mapped keys")) |
7 | 1013 call <SID>BinOptionG("remap", &remap) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1014 call <SID>AddOption("timeout", gettext("allow timing out halfway into a mapping")) |
7 | 1015 call <SID>BinOptionG("to", &to) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1016 call <SID>AddOption("ttimeout", gettext("allow timing out halfway into a key code")) |
7 | 1017 call <SID>BinOptionG("ttimeout", &ttimeout) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1018 call <SID>AddOption("timeoutlen", gettext("time in msec for 'timeout'")) |
7 | 1019 call append("$", " \tset tm=" . &tm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1020 call <SID>AddOption("ttimeoutlen", gettext("time in msec for 'ttimeout'")) |
7 | 1021 call append("$", " \tset ttm=" . &ttm) |
1022 | |
1023 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1024 call <SID>Header(gettext("reading and writing files")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1025 call <SID>AddOption("modeline", gettext("enable using settings from modelines when reading a file")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1026 call append("$", "\t" .. s:local_to_buffer) |
7 | 1027 call <SID>BinOptionL("ml") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1028 call <SID>AddOption("modelineexpr", gettext("allow setting expression options from a modeline")) |
16808 | 1029 call <SID>BinOptionG("mle", &mle) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1030 call <SID>AddOption("modelines", gettext("number of lines to check for modelines")) |
7 | 1031 call append("$", " \tset mls=" . &mls) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1032 call <SID>AddOption("binary", gettext("binary file editing")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1033 call append("$", "\t" .. s:local_to_buffer) |
7 | 1034 call <SID>BinOptionL("bin") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1035 call <SID>AddOption("endofline", gettext("last line in the file has an end-of-line")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1036 call append("$", "\t" .. s:local_to_buffer) |
7 | 1037 call <SID>BinOptionL("eol") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1038 call <SID>AddOption("fixendofline", gettext("fixes missing end-of-line at end of text file")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1039 call append("$", "\t" .. s:local_to_buffer) |
6933 | 1040 call <SID>BinOptionL("fixeol") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1041 call <SID>AddOption("bomb", gettext("prepend a Byte Order Mark to the file")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1042 call append("$", "\t" .. s:local_to_buffer) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1043 call <SID>BinOptionL("bomb") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1044 call <SID>AddOption("fileformat", gettext("end-of-line format: \"dos\", \"unix\" or \"mac\"")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1045 call append("$", "\t" .. s:local_to_buffer) |
7 | 1046 call <SID>OptionL("ff") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1047 call <SID>AddOption("fileformats", gettext("list of file formats to look for when editing a file")) |
7 | 1048 call <SID>OptionG("ffs", &ffs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1049 call <SID>AddOption("textmode", gettext("obsolete, use 'fileformat'")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1050 call append("$", "\t" .. s:local_to_buffer) |
7 | 1051 call <SID>BinOptionL("tx") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1052 call <SID>AddOption("textauto", gettext("obsolete, use 'fileformats'")) |
7 | 1053 call <SID>BinOptionG("ta", &ta) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1054 call <SID>AddOption("write", gettext("writing files is allowed")) |
7 | 1055 call <SID>BinOptionG("write", &write) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1056 call <SID>AddOption("writebackup", gettext("write a backup file before overwriting a file")) |
7 | 1057 call <SID>BinOptionG("wb", &wb) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1058 call <SID>AddOption("backup", gettext("keep a backup after overwriting a file")) |
7 | 1059 call <SID>BinOptionG("bk", &bk) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1060 call <SID>AddOption("backupskip", gettext("patterns that specify for which files a backup is not made")) |
7 | 1061 call append("$", " \tset bsk=" . &bsk) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1062 call <SID>AddOption("backupcopy", gettext("whether to make the backup as a copy or rename the existing file")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1063 call append("$", "\t" .. s:global_or_local) |
7 | 1064 call append("$", " \tset bkc=" . &bkc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1065 call <SID>AddOption("backupdir", gettext("list of directories to put backup files in")) |
7 | 1066 call <SID>OptionG("bdir", &bdir) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1067 call <SID>AddOption("backupext", gettext("file name extension for the backup file")) |
7 | 1068 call <SID>OptionG("bex", &bex) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1069 call <SID>AddOption("autowrite", gettext("automatically write a file when leaving a modified buffer")) |
7 | 1070 call <SID>BinOptionG("aw", &aw) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1071 call <SID>AddOption("autowriteall", gettext("as 'autowrite', but works with more commands")) |
7 | 1072 call <SID>BinOptionG("awa", &awa) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1073 call <SID>AddOption("writeany", gettext("always write without asking for confirmation")) |
7 | 1074 call <SID>BinOptionG("wa", &wa) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1075 call <SID>AddOption("autoread", gettext("automatically read a file when it was modified outside of Vim")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1076 call append("$", "\t" .. s:global_or_local) |
7 | 1077 call <SID>BinOptionG("ar", &ar) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1078 call <SID>AddOption("patchmode", gettext("keep oldest version of a file; specifies file name extension")) |
7 | 1079 call <SID>OptionG("pm", &pm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1080 call <SID>AddOption("fsync", gettext("forcibly sync the file to disk after writing it")) |
36 | 1081 call <SID>BinOptionG("fs", &fs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1082 call <SID>AddOption("shortname", gettext("use 8.3 file names")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1083 call append("$", "\t" .. s:local_to_buffer) |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9048
diff
changeset
|
1084 call <SID>BinOptionL("sn") |
22723 | 1085 call <SID>AddOption("cryptmethod", gettext("encryption method for file writing: zip, blowfish or blowfish2")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1086 call append("$", "\t" .. s:local_to_buffer) |
2198
e741fe7a0547
Updated a few runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2178
diff
changeset
|
1087 call <SID>OptionL("cm") |
7 | 1088 |
1089 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1090 call <SID>Header(gettext("the swap file")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1091 call <SID>AddOption("directory", gettext("list of directories for the swap file")) |
7 | 1092 call <SID>OptionG("dir", &dir) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1093 call <SID>AddOption("swapfile", gettext("use a swap file for this buffer")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1094 call append("$", "\t" .. s:local_to_buffer) |
7 | 1095 call <SID>BinOptionL("swf") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1096 call <SID>AddOption("swapsync", gettext("\"sync\", \"fsync\" or empty; how to flush a swap file to disk")) |
7 | 1097 call <SID>OptionG("sws", &sws) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1098 call <SID>AddOption("updatecount", gettext("number of characters typed to cause a swap file update")) |
7 | 1099 call append("$", " \tset uc=" . &uc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1100 call <SID>AddOption("updatetime", gettext("time in msec after which the swap file will be updated")) |
7 | 1101 call append("$", " \tset ut=" . &ut) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1102 call <SID>AddOption("maxmem", gettext("maximum amount of memory in Kbyte used for one buffer")) |
7 | 1103 call append("$", " \tset mm=" . &mm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1104 call <SID>AddOption("maxmemtot", gettext("maximum amount of memory in Kbyte used for all buffers")) |
7 | 1105 call append("$", " \tset mmt=" . &mmt) |
1106 | |
1107 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1108 call <SID>Header(gettext("command line editing")) |
22723 | 1109 call <SID>AddOption("history", gettext("how many command lines are remembered")) |
7 | 1110 call append("$", " \tset hi=" . &hi) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1111 call <SID>AddOption("wildchar", gettext("key that triggers command-line expansion")) |
7 | 1112 call append("$", " \tset wc=" . &wc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1113 call <SID>AddOption("wildcharm", gettext("like 'wildchar' but can also be used in a mapping")) |
7 | 1114 call append("$", " \tset wcm=" . &wcm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1115 call <SID>AddOption("wildmode", gettext("specifies how command line completion works")) |
7 | 1116 call <SID>OptionG("wim", &wim) |
40 | 1117 if has("wildoptions") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1118 call <SID>AddOption("wildoptions", gettext("empty or \"tagfile\" to list file name of matching tags")) |
40 | 1119 call <SID>OptionG("wop", &wop) |
1120 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1121 call <SID>AddOption("suffixes", gettext("list of file name extensions that have a lower priority")) |
7 | 1122 call <SID>OptionG("su", &su) |
1123 if has("file_in_path") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1124 call <SID>AddOption("suffixesadd", gettext("list of file name extensions added when searching for a file")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1125 call append("$", "\t" .. s:local_to_buffer) |
7 | 1126 call <SID>OptionL("sua") |
1127 endif | |
1128 if has("wildignore") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1129 call <SID>AddOption("wildignore", gettext("list of patterns to ignore files for file name completion")) |
7 | 1130 call <SID>OptionG("wig", &wig) |
1131 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1132 call <SID>AddOption("fileignorecase", gettext("ignore case when using file names")) |
4254 | 1133 call <SID>BinOptionG("fic", &fic) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1134 call <SID>AddOption("wildignorecase", gettext("ignore case when completing file names")) |
2662 | 1135 call <SID>BinOptionG("wic", &wic) |
7 | 1136 if has("wildmenu") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1137 call <SID>AddOption("wildmenu", gettext("command-line completion shows a list of matches")) |
7 | 1138 call <SID>BinOptionG("wmnu", &wmnu) |
1139 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1140 call <SID>AddOption("cedit", gettext("key used to open the command-line window")) |
15729 | 1141 call <SID>OptionG("cedit", &cedit) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1142 call <SID>AddOption("cmdwinheight", gettext("height of the command-line window")) |
15729 | 1143 call <SID>OptionG("cwh", &cwh) |
7 | 1144 |
1145 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1146 call <SID>Header(gettext("executing external commands")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1147 call <SID>AddOption("shell", gettext("name of the shell program used for external commands")) |
7 | 1148 call <SID>OptionG("sh", &sh) |
1149 if has("amiga") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1150 call <SID>AddOption("shelltype", gettext("when to use the shell or directly execute a command")) |
7 | 1151 call append("$", " \tset st=" . &st) |
1152 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1153 call <SID>AddOption("shellquote", gettext("character(s) to enclose a shell command in")) |
7 | 1154 call <SID>OptionG("shq", &shq) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1155 call <SID>AddOption("shellxquote", gettext("like 'shellquote' but include the redirection")) |
7 | 1156 call <SID>OptionG("sxq", &sxq) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1157 call <SID>AddOption("shellxescape", gettext("characters to escape when 'shellxquote' is (")) |
3371 | 1158 call <SID>OptionG("sxe", &sxe) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1159 call <SID>AddOption("shellcmdflag", gettext("argument for 'shell' to execute a command")) |
7 | 1160 call <SID>OptionG("shcf", &shcf) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1161 call <SID>AddOption("shellredir", gettext("used to redirect command output to a file")) |
7 | 1162 call <SID>OptionG("srr", &srr) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1163 call <SID>AddOption("shelltemp", gettext("use a temp file for shell commands instead of using a pipe")) |
393 | 1164 call <SID>BinOptionG("stmp", &stmp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1165 call <SID>AddOption("equalprg", gettext("program used for \"=\" command")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1166 call append("$", "\t" .. s:global_or_local) |
7 | 1167 call <SID>OptionG("ep", &ep) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1168 call <SID>AddOption("formatprg", gettext("program used to format lines with \"gq\" command")) |
7 | 1169 call <SID>OptionG("fp", &fp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1170 call <SID>AddOption("keywordprg", gettext("program used for the \"K\" command")) |
7 | 1171 call <SID>OptionG("kp", &kp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1172 call <SID>AddOption("warn", gettext("warn when using a shell command and a buffer has changes")) |
7 | 1173 call <SID>BinOptionG("warn", &warn) |
1174 | |
1175 | |
1176 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1177 call <SID>Header(gettext("running make and jumping to errors (quickfix)")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1178 call <SID>AddOption("errorfile", gettext("name of the file that contains error messages")) |
7 | 1179 call <SID>OptionG("ef", &ef) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1180 call <SID>AddOption("errorformat", gettext("list of formats for error messages")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1181 call append("$", "\t" .. s:global_or_local) |
7 | 1182 call <SID>OptionG("efm", &efm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1183 call <SID>AddOption("makeprg", gettext("program used for the \":make\" command")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1184 call append("$", "\t" .. s:global_or_local) |
7 | 1185 call <SID>OptionG("mp", &mp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1186 call <SID>AddOption("shellpipe", gettext("string used to put the output of \":make\" in the error file")) |
7 | 1187 call <SID>OptionG("sp", &sp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1188 call <SID>AddOption("makeef", gettext("name of the errorfile for the 'makeprg' command")) |
7 | 1189 call <SID>OptionG("mef", &mef) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1190 call <SID>AddOption("grepprg", gettext("program used for the \":grep\" command")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1191 call append("$", "\t" .. s:global_or_local) |
7 | 1192 call <SID>OptionG("gp", &gp) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1193 call <SID>AddOption("grepformat", gettext("list of formats for output of 'grepprg'")) |
7 | 1194 call <SID>OptionG("gfm", &gfm) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1195 call <SID>AddOption("makeencoding", gettext("encoding of the \":make\" and \":grep\" output")) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1196 call append("$", "\t" .. s:global_or_local) |
11077
746c1e1be45f
patch 8.0.0427: 'makeencoding' missing from the options window
Christian Brabandt <cb@256bit.org>
parents:
10895
diff
changeset
|
1197 call <SID>OptionG("menc", &menc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1198 call <SID>AddOption("quickfixtextfunc", gettext("function to display text in the quickfix window")) |
20753 | 1199 call <SID>OptionG("qftf", &qftf) |
7 | 1200 endif |
1201 | |
1202 | |
22723 | 1203 if has("win32") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1204 call <SID>Header(gettext("system specific")) |
22723 | 1205 call <SID>AddOption("shellslash", gettext("use forward slashes in file names; for Unix-like shells")) |
1206 call <SID>BinOptionG("ssl", &ssl) | |
1207 call <SID>AddOption("completeslash", gettext("specifies slash/backslash used for completion")) | |
1208 call <SID>OptionG("csl", &csl) | |
7 | 1209 endif |
1210 | |
1211 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1212 call <SID>Header(gettext("language specific")) |
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1213 call <SID>AddOption("isfname", gettext("specifies the characters in a file name")) |
7 | 1214 call <SID>OptionG("isf", &isf) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1215 call <SID>AddOption("isident", gettext("specifies the characters in an identifier")) |
7 | 1216 call <SID>OptionG("isi", &isi) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1217 call <SID>AddOption("iskeyword", gettext("specifies the characters in a keyword")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1218 call append("$", "\t" .. s:local_to_buffer) |
7 | 1219 call <SID>OptionL("isk") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1220 call <SID>AddOption("isprint", gettext("specifies printable characters")) |
7 | 1221 call <SID>OptionG("isp", &isp) |
12 | 1222 if has("textobjects") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1223 call <SID>AddOption("quoteescape", gettext("specifies escape characters in a string")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1224 call append("$", "\t" .. s:local_to_buffer) |
12 | 1225 call <SID>OptionL("qe") |
1226 endif | |
7 | 1227 if has("rightleft") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1228 call <SID>AddOption("rightleft", gettext("display the buffer right-to-left")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1229 call append("$", "\t" .. s:local_to_window) |
7 | 1230 call <SID>BinOptionL("rl") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1231 call <SID>AddOption("rightleftcmd", gettext("when to edit the command-line right-to-left")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1232 call append("$", "\t" .. s:local_to_window) |
7 | 1233 call <SID>OptionL("rlc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1234 call <SID>AddOption("revins", gettext("insert characters backwards")) |
7 | 1235 call <SID>BinOptionG("ri", &ri) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1236 call <SID>AddOption("allowrevins", gettext("allow CTRL-_ in Insert and Command-line mode to toggle 'revins'")) |
7 | 1237 call <SID>BinOptionG("ari", &ari) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1238 call <SID>AddOption("aleph", gettext("the ASCII code for the first letter of the Hebrew alphabet")) |
7 | 1239 call append("$", " \tset al=" . &al) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1240 call <SID>AddOption("hkmap", gettext("use Hebrew keyboard mapping")) |
7 | 1241 call <SID>BinOptionG("hk", &hk) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1242 call <SID>AddOption("hkmapp", gettext("use phonetic Hebrew keyboard mapping")) |
7 | 1243 call <SID>BinOptionG("hkp", &hkp) |
1244 endif | |
1245 if has("arabic") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1246 call <SID>AddOption("arabic", gettext("prepare for editing Arabic text")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1247 call append("$", "\t" .. s:local_to_window) |
7 | 1248 call <SID>BinOptionL("arab") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1249 call <SID>AddOption("arabicshape", gettext("perform shaping of Arabic characters")) |
7 | 1250 call <SID>BinOptionG("arshape", &arshape) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1251 call <SID>AddOption("termbidi", gettext("terminal will perform bidi handling")) |
7 | 1252 call <SID>BinOptionG("tbidi", &tbidi) |
1253 endif | |
1254 if has("keymap") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1255 call <SID>AddOption("keymap", gettext("name of a keyboard mapping")) |
7 | 1256 call <SID>OptionL("kmp") |
1257 endif | |
1258 if has("langmap") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1259 call <SID>AddOption("langmap", gettext("list of characters that are translated in Normal mode")) |
7 | 1260 call <SID>OptionG("lmap", &lmap) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1261 call <SID>AddOption("langremap", gettext("apply 'langmap' to mapped characters")) |
9975
03fa8a51e9dc
commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents:
9860
diff
changeset
|
1262 call <SID>BinOptionG("lrm", &lrm) |
7 | 1263 endif |
1264 if has("xim") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1265 call <SID>AddOption("imdisable", gettext("when set never use IM; overrules following IM options")) |
7 | 1266 call <SID>BinOptionG("imd", &imd) |
1267 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1268 call <SID>AddOption("iminsert", gettext("in Insert mode: 1: use :lmap; 2: use IM; 0: neither")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1269 call append("$", "\t" .. s:local_to_window) |
7 | 1270 call <SID>OptionL("imi") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1271 call <SID>AddOption("imstyle", gettext("input method style, 0: on-the-spot, 1: over-the-spot")) |
12499 | 1272 call <SID>OptionG("imst", &imst) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1273 call <SID>AddOption("imsearch", gettext("entering a search pattern: 1: use :lmap; 2: use IM; 0: neither")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1274 call append("$", "\t" .. s:local_to_window) |
7 | 1275 call <SID>OptionL("ims") |
1276 if has("xim") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1277 call <SID>AddOption("imcmdline", gettext("when set always use IM when starting to edit a command line")) |
7 | 1278 call <SID>BinOptionG("imc", &imc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1279 call <SID>AddOption("imstatusfunc", gettext("function to obtain IME status")) |
5055 | 1280 call <SID>OptionG("imsf", &imsf) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1281 call <SID>AddOption("imactivatefunc", gettext("function to enable/disable IME")) |
5055 | 1282 call <SID>OptionG("imaf", &imaf) |
7 | 1283 endif |
1284 | |
1285 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1286 call <SID>Header(gettext("multi-byte characters")) |
22824 | 1287 call <SID>AddOption("encoding", gettext("character encoding used in Vim: \"latin1\", \"utf-8\",\n\"euc-jp\", \"big5\", etc.")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1288 call <SID>OptionG("enc", &enc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1289 call <SID>AddOption("fileencoding", gettext("character encoding for the current file")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1290 call append("$", "\t" .. s:local_to_buffer) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1291 call <SID>OptionL("fenc") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1292 call <SID>AddOption("fileencodings", gettext("automatically detected character encodings")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1293 call <SID>OptionG("fencs", &fencs) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1294 call <SID>AddOption("termencoding", gettext("character encoding used by the terminal")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1295 call <SID>OptionG("tenc", &tenc) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1296 call <SID>AddOption("charconvert", gettext("expression used for character encoding conversion")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1297 call <SID>OptionG("ccv", &ccv) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1298 call <SID>AddOption("delcombine", gettext("delete combining (composing) characters on their own")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1299 call <SID>BinOptionG("deco", &deco) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1300 call <SID>AddOption("maxcombine", gettext("maximum number of combining (composing) characters displayed")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1301 call <SID>OptionG("mco", &mco) |
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1302 if has("xim") && has("gui_gtk") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1303 call <SID>AddOption("imactivatekey", gettext("key that activates the X input method")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1304 call <SID>OptionG("imak", &imak) |
7 | 1305 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1306 call <SID>AddOption("ambiwidth", gettext("width of ambiguous width characters")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1307 call <SID>OptionG("ambw", &ambw) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1308 call <SID>AddOption("emoji", gettext("emoji characters are full width")) |
15870
df0426d67bb3
patch 8.1.0942: options window still checks for the multi_byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15746
diff
changeset
|
1309 call <SID>BinOptionG("emo", &emo) |
7 | 1310 |
1311 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1312 call <SID>Header(gettext("various")) |
22723 | 1313 call <SID>AddOption("virtualedit", gettext("when to use virtual editing: \"block\", \"insert\", \"all\"\nand/or \"onemore\"")) |
15729 | 1314 call <SID>OptionG("ve", &ve) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1315 call <SID>AddOption("eventignore", gettext("list of autocommand events which are to be ignored")) |
15729 | 1316 call <SID>OptionG("ei", &ei) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1317 call <SID>AddOption("loadplugins", gettext("load plugin scripts when starting up")) |
7 | 1318 call <SID>BinOptionG("lpl", &lpl) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1319 call <SID>AddOption("exrc", gettext("enable reading .vimrc/.exrc/.gvimrc in the current directory")) |
7 | 1320 call <SID>BinOptionG("ex", &ex) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1321 call <SID>AddOption("secure", gettext("safer working with script files in the current directory")) |
7 | 1322 call <SID>BinOptionG("secure", &secure) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1323 call <SID>AddOption("gdefault", gettext("use the 'g' flag for \":substitute\"")) |
7 | 1324 call <SID>BinOptionG("gd", &gd) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1325 call <SID>AddOption("edcompatible", gettext("'g' and 'c' flags of \":substitute\" toggle")) |
7 | 1326 call <SID>BinOptionG("ed", &ed) |
1120 | 1327 if exists("+opendevice") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1328 call <SID>AddOption("opendevice", gettext("allow reading/writing devices")) |
1120 | 1329 call <SID>BinOptionG("odev", &odev) |
1330 endif | |
1331 if exists("+maxfuncdepth") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1332 call <SID>AddOption("maxfuncdepth", gettext("maximum depth of function calls")) |
7 | 1333 call append("$", " \tset mfd=" . &mfd) |
1120 | 1334 endif |
7 | 1335 if has("mksession") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1336 call <SID>AddOption("sessionoptions", gettext("list of words that specifies what to put in a session file")) |
7 | 1337 call <SID>OptionG("ssop", &ssop) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1338 call <SID>AddOption("viewoptions", gettext("list of words that specifies what to save for :mkview")) |
7 | 1339 call <SID>OptionG("vop", &vop) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1340 call <SID>AddOption("viewdir", gettext("directory where to store files with :mkview")) |
7 | 1341 call <SID>OptionG("vdir", &vdir) |
1342 endif | |
1343 if has("viminfo") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1344 call <SID>AddOption("viminfo", gettext("list that specifies what to write in the viminfo file")) |
7 | 1345 call <SID>OptionG("vi", &vi) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1346 call <SID>AddOption("viminfofile", gettext("file name used for the viminfo file")) |
11914 | 1347 call <SID>OptionG("vif", &vif) |
7 | 1348 endif |
1349 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1350 call <SID>AddOption("bufhidden", gettext("what happens with a buffer when it's no longer in a window")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1351 call append("$", "\t" .. s:local_to_buffer) |
7 | 1352 call <SID>OptionL("bh") |
22723 | 1353 call <SID>AddOption("buftype", gettext("empty, \"nofile\", \"nowrite\", \"quickfix\", etc.: type of buffer")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1354 call append("$", "\t" .. s:local_to_buffer) |
7 | 1355 call <SID>OptionL("bt") |
1356 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1357 call <SID>AddOption("buflisted", gettext("whether the buffer shows up in the buffer list")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1358 call append("$", "\t" .. s:local_to_buffer) |
7 | 1359 call <SID>BinOptionL("bl") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1360 call <SID>AddOption("debug", gettext("set to \"msg\" to see all error messages")) |
7 | 1361 call append("$", " \tset debug=" . &debug) |
9852
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1362 if has("signs") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1363 call <SID>AddOption("signcolumn", gettext("whether to show the signcolumn")) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
1364 call append("$", "\t" .. s:local_to_window) |
9852
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1365 call <SID>OptionL("scl") |
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1366 endif |
14 | 1367 if has("mzscheme") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1368 call <SID>AddOption("mzquantum", gettext("interval in milliseconds between polls for MzScheme threads")) |
14 | 1369 call append("$", " \tset mzq=" . &mzq) |
1370 endif | |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1371 if exists("&luadll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1372 call <SID>AddOption("luadll", gettext("name of the Lua dynamic library")) |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1373 call <SID>OptionG("luadll", &luadll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1374 endif |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1375 if exists("&perldll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1376 call <SID>AddOption("perldll", gettext("name of the Perl dynamic library")) |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1377 call <SID>OptionG("perldll", &perldll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1378 endif |
10722
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1379 if has('pythonx') |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1380 call <SID>AddOption("pyxversion", gettext("whether to use Python 2 or 3")) |
10722
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1381 call append("$", " \tset pyx=" . &wd) |
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1382 endif |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1383 if exists("&pythondll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1384 call <SID>AddOption("pythondll", gettext("name of the Python 2 dynamic library")) |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1385 call <SID>OptionG("pythondll", &pythondll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1386 endif |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1387 if exists("&pythonhome") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1388 call <SID>AddOption("pythonhome", gettext("name of the Python 2 home directory")) |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1389 call <SID>OptionG("pythonhome", &pythonhome) |
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1390 endif |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1391 if exists("&pythonthreedll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1392 call <SID>AddOption("pythonthreedll", gettext("name of the Python 3 dynamic library")) |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1393 call <SID>OptionG("pythonthreedll", &pythonthreedll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1394 endif |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1395 if exists("&pythonthreehome") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1396 call <SID>AddOption("pythonthreehome", gettext("name of the Python 3 home directory")) |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1397 call <SID>OptionG("pythonthreehome", &pythonthreehome) |
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1398 endif |
7222
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1399 if exists("&rubydll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1400 call <SID>AddOption("rubydll", gettext("name of the Ruby dynamic library")) |
7222
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1401 call <SID>OptionG("rubydll", &rubydll) |
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1402 endif |
7538
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1403 if exists("&tcldll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1404 call <SID>AddOption("tcldll", gettext("name of the Tcl dynamic library")) |
7538
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1405 call <SID>OptionG("tcldll", &tcldll) |
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1406 endif |
12756
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1407 if exists("&mzschemedll") |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1408 call <SID>AddOption("mzschemedll", gettext("name of the MzScheme dynamic library")) |
12756
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1409 call <SID>OptionG("mzschemedll", &mzschemedll) |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1410 call <SID>AddOption("mzschemegcdll", gettext("name of the MzScheme GC dynamic library")) |
12756
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1411 call <SID>OptionG("mzschemegcdll", &mzschemegcdll) |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1412 endif |
7 | 1413 |
1414 set cpo&vim | |
1415 | |
1416 " go to first line | |
1417 1 | |
1418 | |
1419 " reset 'modified', so that ":q" can be used to close the window | |
1420 setlocal nomodified | |
1421 | |
1422 if has("syntax") | |
1423 " Use Vim highlighting, with some additional stuff | |
1424 setlocal ft=vim | |
1425 syn match optwinHeader "^ \=[0-9].*" | |
1426 syn match optwinName "^[a-z]*\t" nextgroup=optwinComment | |
1427 syn match optwinComment ".*" contained | |
1428 syn match optwinComment "^\t.*" | |
1429 if !exists("did_optwin_syntax_inits") | |
1430 let did_optwin_syntax_inits = 1 | |
1431 hi link optwinHeader Title | |
1432 hi link optwinName Identifier | |
1433 hi link optwinComment Comment | |
1434 endif | |
1435 endif | |
1436 | |
1437 " Install autocommands to enable mappings in option-window | |
1438 noremap <silent> <buffer> <CR> <C-\><C-N>:call <SID>CR()<CR> | |
1439 inoremap <silent> <buffer> <CR> <Esc>:call <SID>CR()<CR> | |
1440 noremap <silent> <buffer> <Space> :call <SID>Space()<CR> | |
1441 | |
1442 " Make the buffer be deleted when the window is closed. | |
1443 setlocal buftype=nofile bufhidden=delete noswapfile | |
1444 | |
1445 augroup optwin | |
1446 au! BufUnload,BufHidden option-window nested | |
1447 \ call <SID>unload() | delfun <SID>unload | |
1448 augroup END | |
1449 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
1450 func <SID>unload() |
7 | 1451 delfun <SID>CR |
1452 delfun <SID>Space | |
1453 delfun <SID>Find | |
1454 delfun <SID>Update | |
1455 delfun <SID>OptionL | |
1456 delfun <SID>OptionG | |
1457 delfun <SID>BinOptionL | |
1458 delfun <SID>BinOptionG | |
1459 delfun <SID>Header | |
1460 au! optwin | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
1461 endfunc |
7 | 1462 |
1463 " Restore the previous value of 'title' and 'icon'. | |
1464 let &title = s:old_title | |
1465 let &icon = s:old_icon | |
1466 let &ru = s:old_ru | |
1467 let &sc = s:old_sc | |
1468 let &cpo = s:cpo_save | |
13346
4dbf2a6972e6
patch 8.0.1547: undo in the options window makes it empty
Christian Brabandt <cb@256bit.org>
parents:
13341
diff
changeset
|
1469 let &ul = s:old_ul |
4dbf2a6972e6
patch 8.0.1547: undo in the options window makes it empty
Christian Brabandt <cb@256bit.org>
parents:
13341
diff
changeset
|
1470 unlet s:old_title s:old_icon s:old_ru s:old_sc s:cpo_save s:idx s:lnum s:old_ul |
2908 | 1471 |
1472 " vim: ts=8 sw=2 sts=2 |