Mercurial > vim
annotate runtime/optwin.vim @ 24128:fcbb1d4df15b v8.2.2605
patch 8.2.2605: Vim9: string index and slice does not include composing chars
Commit: https://github.com/vim/vim/commit/0289a093a4d65c6280a3be118d1d3696d1aa74da
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 14 18:40:19 2021 +0100
patch 8.2.2605: Vim9: string index and slice does not include composing chars
Problem: Vim9: string index and slice does not include composing chars.
Solution: Include composing characters. (issue https://github.com/vim/vim/issues/6563)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Mar 2021 18:45:03 +0100 |
parents | 8dad79c661d1 |
children | 9257f3980f4a |
rev | line source |
---|---|
7 | 1 " These commands create the option window. |
2 " | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
22824 | 4 " Last Change: 2020 Oct 27 |
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) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
263 call <SID>AddOption("cdpath", gettext("list of directory names used for :cd")) |
7 | 264 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
|
265 if exists("+autochdir") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
266 call <SID>AddOption("autochdir", gettext("change to directory of file in buffer")) |
7 | 267 call <SID>BinOptionG("acd", &acd) |
268 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
269 call <SID>AddOption("wrapscan", gettext("search commands wrap around the end of the buffer")) |
7 | 270 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
|
271 call <SID>AddOption("incsearch", gettext("show match for partly typed search command")) |
7 | 272 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
|
273 call <SID>AddOption("magic", gettext("change the way backslashes are used in search patterns")) |
7 | 274 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
|
275 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
|
276 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
|
277 call <SID>AddOption("ignorecase", gettext("ignore case when using a search pattern")) |
7 | 278 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
|
279 call <SID>AddOption("smartcase", gettext("override 'ignorecase' when pattern has upper case characters")) |
7 | 280 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
|
281 call <SID>AddOption("casemap", gettext("what method to use for changing case of letters")) |
7 | 282 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
|
283 call <SID>AddOption("maxmempattern", gettext("maximum amount of memory in Kbyte used for pattern matching")) |
184 | 284 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
|
285 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
|
286 call append("$", "\t" .. s:global_or_local) |
7 | 287 call <SID>OptionG("def", &def) |
288 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
|
289 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
|
290 call append("$", "\t" .. s:local_to_buffer) |
7 | 291 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
|
292 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
|
293 call append("$", "\t" .. s:local_to_buffer) |
7 | 294 call <SID>OptionL("inex") |
295 endif | |
296 | |
297 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
298 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
|
299 call <SID>AddOption("tagbsearch", gettext("use binary searching in tags files")) |
7 | 300 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
|
301 call <SID>AddOption("taglength", gettext("number of significant characters in a tag name or zero")) |
7 | 302 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
|
303 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
|
304 call append("$", "\t" .. s:global_or_local) |
7 | 305 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
|
306 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
|
307 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
|
308 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
|
309 call <SID>AddOption("tagrelative", gettext("file names in a tags file are relative to the tags file")) |
7 | 310 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
|
311 call <SID>AddOption("tagstack", gettext("a :tag command will use the tagstack")) |
7 | 312 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
|
313 call <SID>AddOption("showfulltag", gettext("when completing tags in Insert mode show more info")) |
7 | 314 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
|
315 if has("eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
316 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
|
317 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
|
318 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
|
319 endif |
7 | 320 if has("cscope") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
321 call <SID>AddOption("cscopeprg", gettext("command for executing cscope")) |
7 | 322 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
|
323 call <SID>AddOption("cscopetag", gettext("use cscope for tag commands")) |
7 | 324 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
|
325 call <SID>AddOption("cscopetagorder", gettext("0 or 1; the order in which \":cstag\" performs a search")) |
7 | 326 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
|
327 call <SID>AddOption("cscopeverbose", gettext("give messages when adding a cscope database")) |
7 | 328 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
|
329 call <SID>AddOption("cscopepathcomp", gettext("how many components of the path to show")) |
7 | 330 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
|
331 call <SID>AddOption("cscopequickfix", gettext("when to open a quickfix window for cscope")) |
7 | 332 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
|
333 call <SID>AddOption("cscoperelative", gettext("file names in a cscope file are relative to that file")) |
2908 | 334 call <SID>BinOptionG("csre", &csre) |
7 | 335 endif |
336 | |
337 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
338 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
|
339 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
|
340 call append("$", "\t" .. s:local_to_window) |
7 | 341 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
|
342 call <SID>AddOption("scrolloff", gettext("number of screen lines to show around the cursor")) |
7 | 343 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
|
344 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
|
345 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
|
346 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
|
347 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
|
348 call append("$", "\t" .. s:local_to_window) |
7 | 349 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
|
350 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
|
351 call append("$", "\t" .. s:local_to_window) |
5995 | 352 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
|
353 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
|
354 call append("$", "\t" .. s:local_to_window) |
5995 | 355 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
|
356 call <SID>AddOption("breakat", gettext("which characters might cause a line break")) |
7 | 357 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
|
358 call <SID>AddOption("showbreak", gettext("string to put before wrapped screen lines")) |
7 | 359 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
|
360 call <SID>AddOption("sidescroll", gettext("minimal number of columns to scroll horizontally")) |
7 | 361 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
|
362 call <SID>AddOption("sidescrolloff", gettext("minimal number of columns to keep left and right of the cursor")) |
7 | 363 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
|
364 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 | 365 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
|
366 call <SID>AddOption("fillchars", gettext("characters to use for the status line, folds and filler lines")) |
7 | 367 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
|
368 call <SID>AddOption("cmdheight", gettext("number of lines used for the command-line")) |
7 | 369 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
|
370 call <SID>AddOption("columns", gettext("width of the display")) |
7 | 371 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
|
372 call <SID>AddOption("lines", gettext("number of lines in the display")) |
7 | 373 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
|
374 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
|
375 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
|
376 call <SID>AddOption("lazyredraw", gettext("don't redraw while executing macros")) |
7 | 377 call <SID>BinOptionG("lz", &lz) |
1595 | 378 if has("reltime") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
379 call <SID>AddOption("redrawtime", gettext("timeout for 'hlsearch' and :match highlighting in msec")) |
1595 | 380 call append("$", " \tset rdt=" . &rdt) |
381 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
382 call <SID>AddOption("writedelay", gettext("delay in msec for each char written to the display\n(for debugging)")) |
7 | 383 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
|
384 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
|
385 call append("$", "\t" .. s:local_to_window) |
7 | 386 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
|
387 call <SID>AddOption("listchars", gettext("list of strings used for list mode")) |
7 | 388 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
|
389 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
|
390 call append("$", "\t" .. s:local_to_window) |
7 | 391 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
|
392 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
|
393 call append("$", "\t" .. s:local_to_window) |
2178
c6f1aa1e9f32
Add 'relativenumber' patch from Markus Heidelberg.
Bram Moolenaar <bram@vim.org>
parents:
1595
diff
changeset
|
394 call <SID>BinOptionL("rnu") |
13 | 395 if has("linebreak") |
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("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
|
397 call append("$", "\t" .. s:local_to_window) |
13 | 398 call <SID>OptionL("nuw") |
399 endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
400 if has("conceal") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
401 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
|
402 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
|
403 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
|
404 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
|
405 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
|
406 call <SID>OptionL("cocu") |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
407 endif |
7 | 408 |
409 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
410 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
|
411 call <SID>AddOption("background", gettext("\"dark\" or \"light\"; the background color brightness")) |
7 | 412 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
|
413 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
|
414 call append("$", "\t" .. s:local_to_buffer) |
15729 | 415 call <SID>OptionL("ft") |
7 | 416 if has("syntax") |
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("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
|
418 call append("$", "\t" .. s:local_to_buffer) |
7 | 419 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
|
420 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
|
421 call append("$", "\t" .. s:local_to_buffer) |
409 | 422 call <SID>OptionL("smc") |
7 | 423 endif |
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("highlight", gettext("which highlighting to use for various occasions")) |
7 | 425 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
|
426 call <SID>AddOption("hlsearch", gettext("highlight all matches for the last used search pattern")) |
7 | 427 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
|
428 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
|
429 call append("$", "\t" .. s:local_to_window) |
16808 | 430 call <SID>OptionL("wcr") |
9046
057fb9d0191b
commit https://github.com/vim/vim/commit/8a24b794b89916c8074892e7b25121a21f1fa9c9
Christian Brabandt <cb@256bit.org>
parents:
9042
diff
changeset
|
431 if has("termguicolors") |
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("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
|
433 call <SID>BinOptionG("tgc", &tgc) |
9042
21bd2230c5cd
commit https://github.com/vim/vim/commit/8e3d1b6326c103cc92f8d07b1161ee5172acf201
Christian Brabandt <cb@256bit.org>
parents:
8962
diff
changeset
|
434 endif |
381 | 435 if has("syntax") |
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("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
|
437 call append("$", "\t" .. s:local_to_window) |
737 | 438 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
|
439 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
|
440 call append("$", "\t" .. s:local_to_window) |
737 | 441 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
|
442 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
|
443 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
|
444 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
|
445 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
|
446 call append("$", "\t" .. s:local_to_window) |
2341 | 447 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
|
448 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
|
449 call append("$", "\t" .. s:local_to_window) |
381 | 450 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
|
451 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
|
452 call append("$", "\t" .. s:local_to_buffer) |
381 | 453 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
|
454 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
|
455 call append("$", "\t" .. s:local_to_buffer) |
381 | 456 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
|
457 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
|
458 call append("$", "\t" .. s:local_to_buffer) |
393 | 459 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
|
460 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
|
461 call append("$", "\t" .. s:local_to_buffer) |
20856 | 462 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
|
463 call <SID>AddOption("spellsuggest", gettext("methods used to suggest corrections")) |
381 | 464 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
|
465 call <SID>AddOption("mkspellmem", gettext("amount of memory used by :mkspell before compressing")) |
500 | 466 call <SID>OptionG("msm", &msm) |
381 | 467 endif |
7 | 468 |
469 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
470 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
|
471 call <SID>AddOption("laststatus", gettext("0, 1 or 2; when to use a status line for the last window")) |
7 | 472 call append("$", " \tset ls=" . &ls) |
473 if has("statusline") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
474 call <SID>AddOption("statusline", gettext("alternate format to be used for a status line")) |
7 | 475 call <SID>OptionG("stl", &stl) |
476 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
477 call <SID>AddOption("equalalways", gettext("make all windows the same size when adding/removing windows")) |
7 | 478 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
|
479 call <SID>AddOption("eadirection", gettext("in which direction 'equalalways' works: \"ver\", \"hor\" or \"both\"")) |
15729 | 480 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
|
481 call <SID>AddOption("winheight", gettext("minimal number of lines used for the current window")) |
7 | 482 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
|
483 call <SID>AddOption("winminheight", gettext("minimal number of lines used for any window")) |
7 | 484 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
|
485 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
|
486 call append("$", "\t" .. s:local_to_window) |
7 | 487 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
|
488 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
|
489 call append("$", "\t" .. s:local_to_window) |
779 | 490 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
|
491 call <SID>AddOption("winwidth", gettext("minimal number of columns used for the current window")) |
15729 | 492 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
|
493 call <SID>AddOption("winminwidth", gettext("minimal number of columns used for any window")) |
15729 | 494 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
|
495 call <SID>AddOption("helpheight", gettext("initial height of the help window")) |
7 | 496 call append("$", " \tset hh=" . &hh) |
497 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
498 call <SID>AddOption("previewpopup", gettext("use a popup window for preview")) |
17433 | 499 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
|
500 call <SID>AddOption("previewheight", gettext("default height for the preview window")) |
7 | 501 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
|
502 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
|
503 call append("$", "\t" .. s:local_to_window) |
7 | 504 call <SID>BinOptionL("pvw") |
505 endif | |
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("hidden", gettext("don't unload a buffer when no longer shown in a window")) |
7 | 507 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
|
508 call <SID>AddOption("switchbuf", gettext("\"useopen\" and/or \"split\"; which window to use when jumping\nto a buffer")) |
7 | 509 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
|
510 call <SID>AddOption("splitbelow", gettext("a new window is put below the current one")) |
7 | 511 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
|
512 call <SID>AddOption("splitright", gettext("a new window is put right of the current one")) |
15729 | 513 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
|
514 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
|
515 call append("$", "\t" .. s:local_to_window) |
15729 | 516 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
|
517 call <SID>AddOption("scrollopt", gettext("\"ver\", \"hor\" and/or \"jump\"; list of options for 'scrollbind'")) |
15729 | 518 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
|
519 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
|
520 call append("$", "\t" .. s:local_to_window) |
15729 | 521 call <SID>BinOptionL("crb") |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11077
diff
changeset
|
522 if has("terminal") |
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("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
|
524 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
|
525 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
|
526 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
|
527 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
|
528 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
|
529 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
|
530 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
|
531 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
|
532 if has('win32') |
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("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
|
534 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
|
535 endif |
12182
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
536 if exists("&winptydll") |
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("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
|
538 call <SID>OptionG("winptydll", &winptydll) |
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
539 endif |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11077
diff
changeset
|
540 endif |
7 | 541 |
542 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
543 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
|
544 call <SID>AddOption("showtabline", gettext("0, 1 or 2; when to use a tab pages line")) |
714 | 545 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
|
546 call <SID>AddOption("tabpagemax", gettext("maximum number of tab pages to open for -p and \"tab all\"")) |
714 | 547 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
|
548 call <SID>AddOption("tabline", gettext("custom tab pages line")) |
714 | 549 call <SID>OptionG("tal", &tal) |
842 | 550 if has("gui") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
551 call <SID>AddOption("guitablabel", gettext("custom tab page label for the GUI")) |
842 | 552 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
|
553 call <SID>AddOption("guitabtooltip", gettext("custom tab page tooltip for the GUI")) |
842 | 554 call <SID>OptionG("gtt", >t) |
555 endif | |
714 | 556 |
557 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
558 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
|
559 call <SID>AddOption("term", gettext("name of the used terminal")) |
7 | 560 call <SID>OptionG("term", &term) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
561 call <SID>AddOption("ttytype", gettext("alias for 'term'")) |
7 | 562 call <SID>OptionG("tty", &tty) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
563 call <SID>AddOption("ttybuiltin", gettext("check built-in termcaps first")) |
7 | 564 call <SID>BinOptionG("tbi", &tbi) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
565 call <SID>AddOption("ttyfast", gettext("terminal connection is fast")) |
7 | 566 call <SID>BinOptionG("tf", &tf) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
567 call <SID>AddOption("weirdinvert", gettext("terminal that requires extra redrawing")) |
7 | 568 call <SID>BinOptionG("wiv", &wiv) |
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("esckeys", gettext("recognize keys that start with <Esc> in Insert mode")) |
7 | 570 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
|
571 call <SID>AddOption("scrolljump", gettext("minimal number of lines to scroll at a time")) |
7 | 572 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
|
573 call <SID>AddOption("ttyscroll", gettext("maximum number of lines to use scrolling instead of redrawing")) |
7 | 574 call append("$", " \tset tsl=" . &tsl) |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9048
diff
changeset
|
575 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
|
576 call <SID>AddOption("guicursor", gettext("specifies what the cursor looks like in different modes")) |
7 | 577 call <SID>OptionG("gcr", &gcr) |
578 endif | |
579 if has("title") | |
580 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
|
581 call <SID>AddOption("title", gettext("show info in the window title")) |
7 | 582 call <SID>BinOptionG("title", &title) |
583 set notitle | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
584 call <SID>AddOption("titlelen", gettext("percentage of 'columns' used for the window title")) |
7 | 585 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
|
586 call <SID>AddOption("titlestring", gettext("when not empty, string to be used for the window title")) |
7 | 587 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
|
588 call <SID>AddOption("titleold", gettext("string to restore the title to when exiting Vim")) |
7 | 589 call <SID>OptionG("titleold", &titleold) |
590 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
|
591 call <SID>AddOption("icon", gettext("set the text of the icon for this window")) |
7 | 592 call <SID>BinOptionG("icon", &icon) |
593 set noicon | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
594 call <SID>AddOption("iconstring", gettext("when not empty, text for the icon of this window")) |
7 | 595 call <SID>OptionG("iconstring", &iconstring) |
596 endif | |
597 if has("win32") | |
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("restorescreen", gettext("restore the screen contents when exiting Vim")) |
7 | 599 call <SID>BinOptionG("rs", &rs) |
600 endif | |
601 | |
602 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
603 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
|
604 call <SID>AddOption("mouse", gettext("list of flags for using the mouse")) |
7 | 605 call <SID>OptionG("mouse", &mouse) |
606 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
607 call <SID>AddOption("mousefocus", gettext("the window with the mouse pointer becomes the current one")) |
7 | 608 call <SID>BinOptionG("mousef", &mousef) |
18594 | 609 endif |
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("scrollfocus", gettext("the window with the mouse pointer scrolls with the mouse wheel")) |
18594 | 611 call <SID>BinOptionG("scf", &scf) |
612 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
613 call <SID>AddOption("mousehide", gettext("hide the mouse pointer while typing")) |
7 | 614 call <SID>BinOptionG("mh", &mh) |
615 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
616 call <SID>AddOption("mousemodel", gettext("\"extend\", \"popup\" or \"popup_setpos\"; what the right\nmouse button is used for")) |
7 | 617 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
|
618 call <SID>AddOption("mousetime", gettext("maximum time in msec to recognize a double-click")) |
7 | 619 call append("$", " \tset mouset=" . &mouset) |
22723 | 620 call <SID>AddOption("ttymouse", gettext("\"xterm\", \"xterm2\", \"sgr\", etc.; type of mouse")) |
7 | 621 call <SID>OptionG("ttym", &ttym) |
622 if has("mouseshape") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
623 call <SID>AddOption("mouseshape", gettext("what the mouse pointer looks like in different modes")) |
7 | 624 call <SID>OptionG("mouses", &mouses) |
625 endif | |
626 | |
627 | |
628 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
629 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
|
630 call <SID>AddOption("guifont", gettext("list of font names to be used in the GUI")) |
7 | 631 call <SID>OptionG("gfn", &gfn) |
632 if has("xfontset") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
633 call <SID>AddOption("guifontset", gettext("pair of fonts to be used, for multibyte editing")) |
7 | 634 call <SID>OptionG("gfs", &gfs) |
635 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
636 call <SID>AddOption("guifontwide", gettext("list of font names to be used for double-wide characters")) |
7 | 637 call <SID>OptionG("gfw", &gfw) |
638 if has("mac") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
639 call <SID>AddOption("antialias", gettext("use smooth, antialiased fonts")) |
7 | 640 call <SID>BinOptionG("anti", &anti) |
641 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
642 call <SID>AddOption("guioptions", gettext("list of flags that specify how the GUI works")) |
7 | 643 call <SID>OptionG("go", &go) |
644 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
|
645 call <SID>AddOption("toolbar", gettext("\"icons\", \"text\" and/or \"tooltips\"; how to show the toolbar")) |
7 | 646 call <SID>OptionG("tb", &tb) |
647 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
|
648 call <SID>AddOption("toolbariconsize", gettext("size of toolbar icons")) |
7 | 649 call <SID>OptionG("tbis", &tbis) |
650 endif | |
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("guiheadroom", gettext("room (in pixels) left above/below the window")) |
7 | 652 call append("$", " \tset ghr=" . &ghr) |
653 endif | |
6153 | 654 if has("directx") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
655 call <SID>AddOption("renderoptions", gettext("options for text rendering")) |
6153 | 656 call <SID>OptionG("rop", &rop) |
657 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
658 call <SID>AddOption("guipty", gettext("use a pseudo-tty for I/O to external commands")) |
7 | 659 call <SID>BinOptionG("guipty", &guipty) |
660 if has("browse") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
661 call <SID>AddOption("browsedir", gettext("\"last\", \"buffer\" or \"current\": which directory used for the file browser")) |
7 | 662 call <SID>OptionG("bsdir", &bsdir) |
663 endif | |
664 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
|
665 call <SID>AddOption("langmenu", gettext("language to be used for the menus")) |
7 | 666 call <SID>OptionG("langmenu", &lm) |
667 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
668 call <SID>AddOption("menuitems", gettext("maximum number of items in one menu")) |
7 | 669 call append("$", " \tset mis=" . &mis) |
670 if has("winaltkeys") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
671 call <SID>AddOption("winaltkeys", gettext("\"no\", \"yes\" or \"menu\"; how to use the ALT key")) |
7 | 672 call <SID>OptionG("wak", &wak) |
673 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
674 call <SID>AddOption("linespace", gettext("number of pixel lines to use between characters")) |
7 | 675 call append("$", " \tset lsp=" . &lsp) |
12909 | 676 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
|
677 call <SID>AddOption("balloondelay", gettext("delay in milliseconds before a balloon may pop up")) |
7 | 678 call append("$", " \tset bdlay=" . &bdlay) |
12909 | 679 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
|
680 call <SID>AddOption("ballooneval", gettext("use balloon evaluation in the GUI")) |
12909 | 681 call <SID>BinOptionG("beval", &beval) |
682 endif | |
683 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
|
684 call <SID>AddOption("balloonevalterm", gettext("use balloon evaluation in the terminal")) |
12909 | 685 call <SID>BinOptionG("bevalterm", &beval) |
686 endif | |
184 | 687 if has("eval") |
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("balloonexpr", gettext("expression to show in balloon eval")) |
184 | 689 call append("$", " \tset bexpr=" . &bexpr) |
7 | 690 endif |
691 endif | |
692 endif | |
693 | |
694 if has("printer") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
695 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
|
696 call <SID>AddOption("printoptions", gettext("list of items that control the format of :hardcopy output")) |
15 | 697 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
|
698 call <SID>AddOption("printdevice", gettext("name of the printer to be used for :hardcopy")) |
7 | 699 call <SID>OptionG("pdev", &pdev) |
15 | 700 if has("postscript") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
701 call <SID>AddOption("printexpr", gettext("expression used to print the PostScript file for :hardcopy")) |
15 | 702 call <SID>OptionG("pexpr", &pexpr) |
703 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
704 call <SID>AddOption("printfont", gettext("name of the font to be used for :hardcopy")) |
7 | 705 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
|
706 call <SID>AddOption("printheader", gettext("format of the header used for :hardcopy")) |
7 | 707 call <SID>OptionG("pheader", &pheader) |
15 | 708 if has("postscript") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
709 call <SID>AddOption("printencoding", gettext("encoding used to print the PostScript file for :hardcopy")) |
15 | 710 call <SID>OptionG("penc", &penc) |
711 endif | |
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("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
|
713 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
|
714 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
|
715 call <SID>OptionG("pmbfn", &pmbfn) |
7 | 716 endif |
717 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
718 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
|
719 call <SID>AddOption("terse", gettext("add 's' flag in 'shortmess' (don't show search message)")) |
7 | 720 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
|
721 call <SID>AddOption("shortmess", gettext("list of flags to make messages shorter")) |
7 | 722 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
|
723 call <SID>AddOption("showcmd", gettext("show (partial) command keys in the status line")) |
7 | 724 let &sc = s:old_sc |
725 call <SID>BinOptionG("sc", &sc) | |
726 set nosc | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
727 call <SID>AddOption("showmode", gettext("display the current mode in the status line")) |
7 | 728 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
|
729 call <SID>AddOption("ruler", gettext("show cursor position below each window")) |
7 | 730 let &ru = s:old_ru |
731 call <SID>BinOptionG("ru", &ru) | |
732 set noru | |
733 if has("statusline") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
734 call <SID>AddOption("rulerformat", gettext("alternate format to be used for the ruler")) |
7 | 735 call <SID>OptionG("ruf", &ruf) |
736 endif | |
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("report", gettext("threshold for reporting number of changed lines")) |
7 | 738 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
|
739 call <SID>AddOption("verbose", gettext("the higher the more messages are given")) |
7 | 740 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
|
741 call <SID>AddOption("verbosefile", gettext("file to write messages in")) |
381 | 742 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
|
743 call <SID>AddOption("more", gettext("pause listings when the screen is full")) |
7 | 744 call <SID>BinOptionG("more", &more) |
745 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
|
746 call <SID>AddOption("confirm", gettext("start a dialog when a command fails")) |
7 | 747 call <SID>BinOptionG("cf", &cf) |
748 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
749 call <SID>AddOption("errorbells", gettext("ring the bell for error messages")) |
7 | 750 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
|
751 call <SID>AddOption("visualbell", gettext("use a visual bell instead of beeping")) |
7 | 752 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
|
753 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
|
754 call <SID>OptionG("belloff", &belloff) |
7 | 755 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
|
756 call <SID>AddOption("helplang", gettext("list of preferred languages for finding help")) |
7 | 757 call <SID>OptionG("hlg", &hlg) |
758 endif | |
759 | |
760 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
761 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
|
762 call <SID>AddOption("selection", gettext("\"old\", \"inclusive\" or \"exclusive\"; how selecting text behaves")) |
7 | 763 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
|
764 call <SID>AddOption("selectmode", gettext("\"mouse\", \"key\" and/or \"cmd\"; when to start Select mode\ninstead of Visual mode")) |
7 | 765 call <SID>OptionG("slm", &slm) |
766 if has("clipboard") | |
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("clipboard", gettext("\"unnamed\" to use the * register like unnamed register\n\"autoselect\" to always put selected text on the clipboard")) |
7 | 768 call <SID>OptionG("cb", &cb) |
769 endif | |
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("keymodel", gettext("\"startsel\" and/or \"stopsel\"; what special keys can do")) |
7 | 771 call <SID>OptionG("km", &km) |
772 | |
773 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
774 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
|
775 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
|
776 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
|
777 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
|
778 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
|
779 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
|
780 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
|
781 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
|
782 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
|
783 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
|
784 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
|
785 call append("$", "\t" .. s:local_to_buffer) |
7 | 786 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
|
787 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
|
788 call append("$", "\t" .. s:local_to_buffer) |
7 | 789 call <SID>BinOptionL("ro") |
22723 | 790 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
|
791 call append("$", "\t" .. s:local_to_buffer) |
7 | 792 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
|
793 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
|
794 call append("$", "\t" .. s:local_to_buffer) |
7 | 795 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
|
796 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
|
797 call append("$", "\t" .. s:local_to_buffer) |
7 | 798 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
|
799 call <SID>AddOption("backspace", gettext("specifies what <BS>, CTRL-W, etc. can do in Insert mode")) |
7 | 800 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
|
801 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
|
802 call append("$", "\t" .. s:local_to_buffer) |
7 | 803 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
|
804 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
|
805 call append("$", "\t" .. s:local_to_buffer) |
7 | 806 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
|
807 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
|
808 call append("$", "\t" .. s:local_to_buffer) |
41 | 809 call <SID>OptionL("flp") |
714 | 810 if has("eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
811 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
|
812 call append("$", "\t" .. s:local_to_buffer) |
714 | 813 call <SID>OptionL("fex") |
814 endif | |
7 | 815 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
|
816 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
|
817 call append("$", "\t" .. s:local_to_buffer) |
7 | 818 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
|
819 call <SID>AddOption("completeopt", gettext("whether to use a popup menu for Insert mode completion")) |
539 | 820 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
|
821 if exists("+completepopup") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
822 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
|
823 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
|
824 endif |
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("pumheight", gettext("maximum height of the popup menu")) |
771 | 826 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
|
827 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
|
828 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
|
829 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
|
830 call append("$", "\t" .. s:local_to_buffer) |
12 | 831 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
|
832 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
|
833 call append("$", "\t" .. s:local_to_buffer) |
502 | 834 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
|
835 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
|
836 call append("$", "\t" .. s:global_or_local) |
7 | 837 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
|
838 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
|
839 call append("$", "\t" .. s:global_or_local) |
7 | 840 call <SID>OptionG("tsr", &tsr) |
841 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
842 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
|
843 call append("$", "\t" .. s:local_to_buffer) |
7 | 844 call <SID>BinOptionL("inf") |
845 if has("digraphs") | |
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("digraph", gettext("enable entering digraphs with c1 <BS> c2")) |
7 | 847 call <SID>BinOptionG("dg", &dg) |
848 endif | |
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("tildeop", gettext("the \"~\" command behaves like an operator")) |
7 | 850 call <SID>BinOptionG("top", &top) |
22824 | 851 call <SID>AddOption("operatorfunc", gettext("function called for the \"g@\" operator")) |
625 | 852 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
|
853 call <SID>AddOption("showmatch", gettext("when inserting a bracket, briefly jump to its match")) |
7 | 854 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
|
855 call <SID>AddOption("matchtime", gettext("tenth of a second to show a match for 'showmatch'")) |
7 | 856 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
|
857 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
|
858 call append("$", "\t" .. s:local_to_buffer) |
7 | 859 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
|
860 call <SID>AddOption("joinspaces", gettext("use two spaces after '.' when joining a line")) |
7 | 861 call <SID>BinOptionG("js", &js) |
22723 | 862 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
|
863 call append("$", "\t" .. s:local_to_buffer) |
7 | 864 call <SID>OptionL("nf") |
865 | |
866 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
867 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
|
868 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
|
869 call append("$", "\t" .. s:local_to_buffer) |
7 | 870 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
|
871 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
|
872 call append("$", "\t" .. s:local_to_buffer) |
7 | 873 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
|
874 if has("vartabs") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
875 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
|
876 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
|
877 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
|
878 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
|
879 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
|
880 call <SID>OptionL("vsts") |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13946
diff
changeset
|
881 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
882 call <SID>AddOption("smarttab", gettext("a <Tab> in an indent inserts 'shiftwidth' spaces")) |
7 | 883 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
|
884 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
|
885 call append("$", "\t" .. s:local_to_buffer) |
7 | 886 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
|
887 call <SID>AddOption("shiftround", gettext("round to 'shiftwidth' for \"<<\" and \">>\"")) |
7 | 888 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
|
889 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
|
890 call append("$", "\t" .. s:local_to_buffer) |
7 | 891 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
|
892 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
|
893 call append("$", "\t" .. s:local_to_buffer) |
7 | 894 call <SID>BinOptionL("ai") |
895 if has("smartindent") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
896 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
|
897 call append("$", "\t" .. s:local_to_buffer) |
7 | 898 call <SID>BinOptionL("si") |
899 endif | |
900 if has("cindent") | |
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("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
|
902 call append("$", "\t" .. s:local_to_buffer) |
7 | 903 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
|
904 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
|
905 call append("$", "\t" .. s:local_to_buffer) |
7 | 906 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
|
907 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
|
908 call append("$", "\t" .. s:local_to_buffer) |
7 | 909 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
|
910 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
|
911 call append("$", "\t" .. s:local_to_buffer) |
7 | 912 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
|
913 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
|
914 call append("$", "\t" .. s:local_to_buffer) |
7 | 915 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
|
916 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
|
917 call append("$", "\t" .. s:local_to_buffer) |
7 | 918 call <SID>OptionL("indk") |
919 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
920 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
|
921 call append("$", "\t" .. s:local_to_buffer) |
7 | 922 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
|
923 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
|
924 call append("$", "\t" .. s:local_to_buffer) |
7 | 925 call <SID>BinOptionL("pi") |
926 if has("lispindent") | |
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("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
|
928 call append("$", "\t" .. s:local_to_buffer) |
7 | 929 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
|
930 call <SID>AddOption("lispwords", gettext("words that change how lisp indenting works")) |
5772 | 931 call <SID>OptionL("lw") |
7 | 932 endif |
933 | |
934 | |
935 if has("folding") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
936 call <SID>Header(gettext("folding")) |
22723 | 937 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
|
938 call append("$", "\t" .. s:local_to_window) |
7 | 939 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
|
940 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
|
941 call append("$", "\t" .. s:local_to_window) |
7 | 942 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
|
943 call <SID>AddOption("foldlevelstart", gettext("value for 'foldlevel' when starting to edit a file")) |
7 | 944 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
|
945 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
|
946 call append("$", "\t" .. s:local_to_window) |
7 | 947 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
|
948 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
|
949 call append("$", "\t" .. s:local_to_window) |
7 | 950 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
|
951 call <SID>AddOption("foldclose", gettext("set to \"all\" to close a fold when the cursor leaves it")) |
7 | 952 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
|
953 call <SID>AddOption("foldopen", gettext("specifies for which commands a fold will be opened")) |
7 | 954 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
|
955 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
|
956 call append("$", "\t" .. s:local_to_window) |
7 | 957 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
|
958 call <SID>AddOption("commentstring", gettext("template for comments; used to put the marker in")) |
7 | 959 call <SID>OptionL("cms") |
22723 | 960 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
|
961 call append("$", "\t" .. s:local_to_window) |
7 | 962 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
|
963 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
|
964 call append("$", "\t" .. s:local_to_window) |
7 | 965 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
|
966 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
|
967 call append("$", "\t" .. s:local_to_window) |
7 | 968 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
|
969 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
|
970 call append("$", "\t" .. s:local_to_window) |
7 | 971 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
|
972 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
|
973 call append("$", "\t" .. s:local_to_window) |
7 | 974 call <SID>OptionL("fdn") |
975 endif | |
976 | |
977 | |
978 if has("diff") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
979 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
|
980 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
|
981 call append("$", "\t" .. s:local_to_window) |
7 | 982 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
|
983 call <SID>AddOption("diffopt", gettext("options for using diff mode")) |
7 | 984 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
|
985 call <SID>AddOption("diffexpr", gettext("expression used to obtain a diff file")) |
7 | 986 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
|
987 call <SID>AddOption("patchexpr", gettext("expression used to patch a file")) |
7 | 988 call <SID>OptionG("pex", &pex) |
989 endif | |
990 | |
991 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
992 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
|
993 call <SID>AddOption("maxmapdepth", gettext("maximum depth of mapping")) |
7 | 994 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
|
995 call <SID>AddOption("remap", gettext("recognize mappings in mapped keys")) |
7 | 996 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
|
997 call <SID>AddOption("timeout", gettext("allow timing out halfway into a mapping")) |
7 | 998 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
|
999 call <SID>AddOption("ttimeout", gettext("allow timing out halfway into a key code")) |
7 | 1000 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
|
1001 call <SID>AddOption("timeoutlen", gettext("time in msec for 'timeout'")) |
7 | 1002 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
|
1003 call <SID>AddOption("ttimeoutlen", gettext("time in msec for 'ttimeout'")) |
7 | 1004 call append("$", " \tset ttm=" . &ttm) |
1005 | |
1006 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1007 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
|
1008 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
|
1009 call append("$", "\t" .. s:local_to_buffer) |
7 | 1010 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
|
1011 call <SID>AddOption("modelineexpr", gettext("allow setting expression options from a modeline")) |
16808 | 1012 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
|
1013 call <SID>AddOption("modelines", gettext("number of lines to check for modelines")) |
7 | 1014 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
|
1015 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
|
1016 call append("$", "\t" .. s:local_to_buffer) |
7 | 1017 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
|
1018 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
|
1019 call append("$", "\t" .. s:local_to_buffer) |
7 | 1020 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
|
1021 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
|
1022 call append("$", "\t" .. s:local_to_buffer) |
6933 | 1023 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
|
1024 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
|
1025 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
|
1026 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
|
1027 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
|
1028 call append("$", "\t" .. s:local_to_buffer) |
7 | 1029 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
|
1030 call <SID>AddOption("fileformats", gettext("list of file formats to look for when editing a file")) |
7 | 1031 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
|
1032 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
|
1033 call append("$", "\t" .. s:local_to_buffer) |
7 | 1034 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
|
1035 call <SID>AddOption("textauto", gettext("obsolete, use 'fileformats'")) |
7 | 1036 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
|
1037 call <SID>AddOption("write", gettext("writing files is allowed")) |
7 | 1038 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
|
1039 call <SID>AddOption("writebackup", gettext("write a backup file before overwriting a file")) |
7 | 1040 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
|
1041 call <SID>AddOption("backup", gettext("keep a backup after overwriting a file")) |
7 | 1042 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
|
1043 call <SID>AddOption("backupskip", gettext("patterns that specify for which files a backup is not made")) |
7 | 1044 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
|
1045 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
|
1046 call append("$", "\t" .. s:global_or_local) |
7 | 1047 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
|
1048 call <SID>AddOption("backupdir", gettext("list of directories to put backup files in")) |
7 | 1049 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
|
1050 call <SID>AddOption("backupext", gettext("file name extension for the backup file")) |
7 | 1051 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
|
1052 call <SID>AddOption("autowrite", gettext("automatically write a file when leaving a modified buffer")) |
7 | 1053 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
|
1054 call <SID>AddOption("autowriteall", gettext("as 'autowrite', but works with more commands")) |
7 | 1055 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
|
1056 call <SID>AddOption("writeany", gettext("always write without asking for confirmation")) |
7 | 1057 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
|
1058 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
|
1059 call append("$", "\t" .. s:global_or_local) |
7 | 1060 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
|
1061 call <SID>AddOption("patchmode", gettext("keep oldest version of a file; specifies file name extension")) |
7 | 1062 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
|
1063 call <SID>AddOption("fsync", gettext("forcibly sync the file to disk after writing it")) |
36 | 1064 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
|
1065 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
|
1066 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
|
1067 call <SID>BinOptionL("sn") |
22723 | 1068 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
|
1069 call append("$", "\t" .. s:local_to_buffer) |
2198
e741fe7a0547
Updated a few runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2178
diff
changeset
|
1070 call <SID>OptionL("cm") |
7 | 1071 |
1072 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1073 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
|
1074 call <SID>AddOption("directory", gettext("list of directories for the swap file")) |
7 | 1075 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
|
1076 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
|
1077 call append("$", "\t" .. s:local_to_buffer) |
7 | 1078 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
|
1079 call <SID>AddOption("swapsync", gettext("\"sync\", \"fsync\" or empty; how to flush a swap file to disk")) |
7 | 1080 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
|
1081 call <SID>AddOption("updatecount", gettext("number of characters typed to cause a swap file update")) |
7 | 1082 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
|
1083 call <SID>AddOption("updatetime", gettext("time in msec after which the swap file will be updated")) |
7 | 1084 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
|
1085 call <SID>AddOption("maxmem", gettext("maximum amount of memory in Kbyte used for one buffer")) |
7 | 1086 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
|
1087 call <SID>AddOption("maxmemtot", gettext("maximum amount of memory in Kbyte used for all buffers")) |
7 | 1088 call append("$", " \tset mmt=" . &mmt) |
1089 | |
1090 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1091 call <SID>Header(gettext("command line editing")) |
22723 | 1092 call <SID>AddOption("history", gettext("how many command lines are remembered")) |
7 | 1093 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
|
1094 call <SID>AddOption("wildchar", gettext("key that triggers command-line expansion")) |
7 | 1095 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
|
1096 call <SID>AddOption("wildcharm", gettext("like 'wildchar' but can also be used in a mapping")) |
7 | 1097 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
|
1098 call <SID>AddOption("wildmode", gettext("specifies how command line completion works")) |
7 | 1099 call <SID>OptionG("wim", &wim) |
40 | 1100 if has("wildoptions") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1101 call <SID>AddOption("wildoptions", gettext("empty or \"tagfile\" to list file name of matching tags")) |
40 | 1102 call <SID>OptionG("wop", &wop) |
1103 endif | |
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("suffixes", gettext("list of file name extensions that have a lower priority")) |
7 | 1105 call <SID>OptionG("su", &su) |
1106 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
|
1107 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
|
1108 call append("$", "\t" .. s:local_to_buffer) |
7 | 1109 call <SID>OptionL("sua") |
1110 endif | |
1111 if has("wildignore") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1112 call <SID>AddOption("wildignore", gettext("list of patterns to ignore files for file name completion")) |
7 | 1113 call <SID>OptionG("wig", &wig) |
1114 endif | |
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("fileignorecase", gettext("ignore case when using file names")) |
4254 | 1116 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
|
1117 call <SID>AddOption("wildignorecase", gettext("ignore case when completing file names")) |
2662 | 1118 call <SID>BinOptionG("wic", &wic) |
7 | 1119 if has("wildmenu") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1120 call <SID>AddOption("wildmenu", gettext("command-line completion shows a list of matches")) |
7 | 1121 call <SID>BinOptionG("wmnu", &wmnu) |
1122 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1123 call <SID>AddOption("cedit", gettext("key used to open the command-line window")) |
15729 | 1124 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
|
1125 call <SID>AddOption("cmdwinheight", gettext("height of the command-line window")) |
15729 | 1126 call <SID>OptionG("cwh", &cwh) |
7 | 1127 |
1128 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1129 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
|
1130 call <SID>AddOption("shell", gettext("name of the shell program used for external commands")) |
7 | 1131 call <SID>OptionG("sh", &sh) |
1132 if has("amiga") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1133 call <SID>AddOption("shelltype", gettext("when to use the shell or directly execute a command")) |
7 | 1134 call append("$", " \tset st=" . &st) |
1135 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1136 call <SID>AddOption("shellquote", gettext("character(s) to enclose a shell command in")) |
7 | 1137 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
|
1138 call <SID>AddOption("shellxquote", gettext("like 'shellquote' but include the redirection")) |
7 | 1139 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
|
1140 call <SID>AddOption("shellxescape", gettext("characters to escape when 'shellxquote' is (")) |
3371 | 1141 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
|
1142 call <SID>AddOption("shellcmdflag", gettext("argument for 'shell' to execute a command")) |
7 | 1143 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
|
1144 call <SID>AddOption("shellredir", gettext("used to redirect command output to a file")) |
7 | 1145 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
|
1146 call <SID>AddOption("shelltemp", gettext("use a temp file for shell commands instead of using a pipe")) |
393 | 1147 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
|
1148 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
|
1149 call append("$", "\t" .. s:global_or_local) |
7 | 1150 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
|
1151 call <SID>AddOption("formatprg", gettext("program used to format lines with \"gq\" command")) |
7 | 1152 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
|
1153 call <SID>AddOption("keywordprg", gettext("program used for the \"K\" command")) |
7 | 1154 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
|
1155 call <SID>AddOption("warn", gettext("warn when using a shell command and a buffer has changes")) |
7 | 1156 call <SID>BinOptionG("warn", &warn) |
1157 | |
1158 | |
1159 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1160 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
|
1161 call <SID>AddOption("errorfile", gettext("name of the file that contains error messages")) |
7 | 1162 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
|
1163 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
|
1164 call append("$", "\t" .. s:global_or_local) |
7 | 1165 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
|
1166 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
|
1167 call append("$", "\t" .. s:global_or_local) |
7 | 1168 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
|
1169 call <SID>AddOption("shellpipe", gettext("string used to put the output of \":make\" in the error file")) |
7 | 1170 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
|
1171 call <SID>AddOption("makeef", gettext("name of the errorfile for the 'makeprg' command")) |
7 | 1172 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
|
1173 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
|
1174 call append("$", "\t" .. s:global_or_local) |
7 | 1175 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
|
1176 call <SID>AddOption("grepformat", gettext("list of formats for output of 'grepprg'")) |
7 | 1177 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
|
1178 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
|
1179 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
|
1180 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
|
1181 call <SID>AddOption("quickfixtextfunc", gettext("function to display text in the quickfix window")) |
20753 | 1182 call <SID>OptionG("qftf", &qftf) |
7 | 1183 endif |
1184 | |
1185 | |
22723 | 1186 if has("win32") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1187 call <SID>Header(gettext("system specific")) |
22723 | 1188 call <SID>AddOption("shellslash", gettext("use forward slashes in file names; for Unix-like shells")) |
1189 call <SID>BinOptionG("ssl", &ssl) | |
1190 call <SID>AddOption("completeslash", gettext("specifies slash/backslash used for completion")) | |
1191 call <SID>OptionG("csl", &csl) | |
7 | 1192 endif |
1193 | |
1194 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1195 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
|
1196 call <SID>AddOption("isfname", gettext("specifies the characters in a file name")) |
7 | 1197 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
|
1198 call <SID>AddOption("isident", gettext("specifies the characters in an identifier")) |
7 | 1199 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
|
1200 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
|
1201 call append("$", "\t" .. s:local_to_buffer) |
7 | 1202 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
|
1203 call <SID>AddOption("isprint", gettext("specifies printable characters")) |
7 | 1204 call <SID>OptionG("isp", &isp) |
12 | 1205 if has("textobjects") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1206 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
|
1207 call append("$", "\t" .. s:local_to_buffer) |
12 | 1208 call <SID>OptionL("qe") |
1209 endif | |
7 | 1210 if has("rightleft") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1211 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
|
1212 call append("$", "\t" .. s:local_to_window) |
7 | 1213 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
|
1214 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
|
1215 call append("$", "\t" .. s:local_to_window) |
7 | 1216 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
|
1217 call <SID>AddOption("revins", gettext("insert characters backwards")) |
7 | 1218 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
|
1219 call <SID>AddOption("allowrevins", gettext("allow CTRL-_ in Insert and Command-line mode to toggle 'revins'")) |
7 | 1220 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
|
1221 call <SID>AddOption("aleph", gettext("the ASCII code for the first letter of the Hebrew alphabet")) |
7 | 1222 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
|
1223 call <SID>AddOption("hkmap", gettext("use Hebrew keyboard mapping")) |
7 | 1224 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
|
1225 call <SID>AddOption("hkmapp", gettext("use phonetic Hebrew keyboard mapping")) |
7 | 1226 call <SID>BinOptionG("hkp", &hkp) |
1227 endif | |
1228 if has("arabic") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1229 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
|
1230 call append("$", "\t" .. s:local_to_window) |
7 | 1231 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
|
1232 call <SID>AddOption("arabicshape", gettext("perform shaping of Arabic characters")) |
7 | 1233 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
|
1234 call <SID>AddOption("termbidi", gettext("terminal will perform bidi handling")) |
7 | 1235 call <SID>BinOptionG("tbidi", &tbidi) |
1236 endif | |
1237 if has("keymap") | |
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("keymap", gettext("name of a keyboard mapping")) |
7 | 1239 call <SID>OptionL("kmp") |
1240 endif | |
1241 if has("langmap") | |
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("langmap", gettext("list of characters that are translated in Normal mode")) |
7 | 1243 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
|
1244 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
|
1245 call <SID>BinOptionG("lrm", &lrm) |
7 | 1246 endif |
1247 if has("xim") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1248 call <SID>AddOption("imdisable", gettext("when set never use IM; overrules following IM options")) |
7 | 1249 call <SID>BinOptionG("imd", &imd) |
1250 endif | |
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("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
|
1252 call append("$", "\t" .. s:local_to_window) |
7 | 1253 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
|
1254 call <SID>AddOption("imstyle", gettext("input method style, 0: on-the-spot, 1: over-the-spot")) |
12499 | 1255 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
|
1256 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
|
1257 call append("$", "\t" .. s:local_to_window) |
7 | 1258 call <SID>OptionL("ims") |
1259 if has("xim") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1260 call <SID>AddOption("imcmdline", gettext("when set always use IM when starting to edit a command line")) |
7 | 1261 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
|
1262 call <SID>AddOption("imstatusfunc", gettext("function to obtain IME status")) |
5055 | 1263 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
|
1264 call <SID>AddOption("imactivatefunc", gettext("function to enable/disable IME")) |
5055 | 1265 call <SID>OptionG("imaf", &imaf) |
7 | 1266 endif |
1267 | |
1268 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1269 call <SID>Header(gettext("multi-byte characters")) |
22824 | 1270 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
|
1271 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
|
1272 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
|
1273 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
|
1274 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
|
1275 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
|
1276 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
|
1277 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
|
1278 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
|
1279 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
|
1280 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
|
1281 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
|
1282 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
|
1283 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
|
1284 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
|
1285 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
|
1286 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
|
1287 call <SID>OptionG("imak", &imak) |
7 | 1288 endif |
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("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
|
1290 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
|
1291 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
|
1292 call <SID>BinOptionG("emo", &emo) |
7 | 1293 |
1294 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1295 call <SID>Header(gettext("various")) |
22723 | 1296 call <SID>AddOption("virtualedit", gettext("when to use virtual editing: \"block\", \"insert\", \"all\"\nand/or \"onemore\"")) |
15729 | 1297 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
|
1298 call <SID>AddOption("eventignore", gettext("list of autocommand events which are to be ignored")) |
15729 | 1299 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
|
1300 call <SID>AddOption("loadplugins", gettext("load plugin scripts when starting up")) |
7 | 1301 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
|
1302 call <SID>AddOption("exrc", gettext("enable reading .vimrc/.exrc/.gvimrc in the current directory")) |
7 | 1303 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
|
1304 call <SID>AddOption("secure", gettext("safer working with script files in the current directory")) |
7 | 1305 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
|
1306 call <SID>AddOption("gdefault", gettext("use the 'g' flag for \":substitute\"")) |
7 | 1307 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
|
1308 call <SID>AddOption("edcompatible", gettext("'g' and 'c' flags of \":substitute\" toggle")) |
7 | 1309 call <SID>BinOptionG("ed", &ed) |
1120 | 1310 if exists("+opendevice") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1311 call <SID>AddOption("opendevice", gettext("allow reading/writing devices")) |
1120 | 1312 call <SID>BinOptionG("odev", &odev) |
1313 endif | |
1314 if exists("+maxfuncdepth") | |
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("maxfuncdepth", gettext("maximum depth of function calls")) |
7 | 1316 call append("$", " \tset mfd=" . &mfd) |
1120 | 1317 endif |
7 | 1318 if has("mksession") |
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("sessionoptions", gettext("list of words that specifies what to put in a session file")) |
7 | 1320 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
|
1321 call <SID>AddOption("viewoptions", gettext("list of words that specifies what to save for :mkview")) |
7 | 1322 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
|
1323 call <SID>AddOption("viewdir", gettext("directory where to store files with :mkview")) |
7 | 1324 call <SID>OptionG("vdir", &vdir) |
1325 endif | |
1326 if has("viminfo") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1327 call <SID>AddOption("viminfo", gettext("list that specifies what to write in the viminfo file")) |
7 | 1328 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
|
1329 call <SID>AddOption("viminfofile", gettext("file name used for the viminfo file")) |
11914 | 1330 call <SID>OptionG("vif", &vif) |
7 | 1331 endif |
1332 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1333 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
|
1334 call append("$", "\t" .. s:local_to_buffer) |
7 | 1335 call <SID>OptionL("bh") |
22723 | 1336 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
|
1337 call append("$", "\t" .. s:local_to_buffer) |
7 | 1338 call <SID>OptionL("bt") |
1339 endif | |
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("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
|
1341 call append("$", "\t" .. s:local_to_buffer) |
7 | 1342 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
|
1343 call <SID>AddOption("debug", gettext("set to \"msg\" to see all error messages")) |
7 | 1344 call append("$", " \tset debug=" . &debug) |
9852
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1345 if has("signs") |
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("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
|
1347 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
|
1348 call <SID>OptionL("scl") |
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1349 endif |
14 | 1350 if has("mzscheme") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1351 call <SID>AddOption("mzquantum", gettext("interval in milliseconds between polls for MzScheme threads")) |
14 | 1352 call append("$", " \tset mzq=" . &mzq) |
1353 endif | |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1354 if exists("&luadll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1355 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
|
1356 call <SID>OptionG("luadll", &luadll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1357 endif |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1358 if exists("&perldll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1359 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
|
1360 call <SID>OptionG("perldll", &perldll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1361 endif |
10722
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1362 if has('pythonx') |
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("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
|
1364 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
|
1365 endif |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1366 if exists("&pythondll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1367 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
|
1368 call <SID>OptionG("pythondll", &pythondll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1369 endif |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1370 if exists("&pythonhome") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1371 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
|
1372 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
|
1373 endif |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1374 if exists("&pythonthreedll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1375 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
|
1376 call <SID>OptionG("pythonthreedll", &pythonthreedll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1377 endif |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1378 if exists("&pythonthreehome") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1379 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
|
1380 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
|
1381 endif |
7222
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1382 if exists("&rubydll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1383 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
|
1384 call <SID>OptionG("rubydll", &rubydll) |
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1385 endif |
7538
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1386 if exists("&tcldll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1387 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
|
1388 call <SID>OptionG("tcldll", &tcldll) |
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1389 endif |
12756
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1390 if exists("&mzschemedll") |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1391 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
|
1392 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
|
1393 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
|
1394 call <SID>OptionG("mzschemegcdll", &mzschemegcdll) |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1395 endif |
7 | 1396 |
1397 set cpo&vim | |
1398 | |
1399 " go to first line | |
1400 1 | |
1401 | |
1402 " reset 'modified', so that ":q" can be used to close the window | |
1403 setlocal nomodified | |
1404 | |
1405 if has("syntax") | |
1406 " Use Vim highlighting, with some additional stuff | |
1407 setlocal ft=vim | |
1408 syn match optwinHeader "^ \=[0-9].*" | |
1409 syn match optwinName "^[a-z]*\t" nextgroup=optwinComment | |
1410 syn match optwinComment ".*" contained | |
1411 syn match optwinComment "^\t.*" | |
1412 if !exists("did_optwin_syntax_inits") | |
1413 let did_optwin_syntax_inits = 1 | |
1414 hi link optwinHeader Title | |
1415 hi link optwinName Identifier | |
1416 hi link optwinComment Comment | |
1417 endif | |
1418 endif | |
1419 | |
1420 " Install autocommands to enable mappings in option-window | |
1421 noremap <silent> <buffer> <CR> <C-\><C-N>:call <SID>CR()<CR> | |
1422 inoremap <silent> <buffer> <CR> <Esc>:call <SID>CR()<CR> | |
1423 noremap <silent> <buffer> <Space> :call <SID>Space()<CR> | |
1424 | |
1425 " Make the buffer be deleted when the window is closed. | |
1426 setlocal buftype=nofile bufhidden=delete noswapfile | |
1427 | |
1428 augroup optwin | |
1429 au! BufUnload,BufHidden option-window nested | |
1430 \ call <SID>unload() | delfun <SID>unload | |
1431 augroup END | |
1432 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
1433 func <SID>unload() |
7 | 1434 delfun <SID>CR |
1435 delfun <SID>Space | |
1436 delfun <SID>Find | |
1437 delfun <SID>Update | |
1438 delfun <SID>OptionL | |
1439 delfun <SID>OptionG | |
1440 delfun <SID>BinOptionL | |
1441 delfun <SID>BinOptionG | |
1442 delfun <SID>Header | |
1443 au! optwin | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
1444 endfunc |
7 | 1445 |
1446 " Restore the previous value of 'title' and 'icon'. | |
1447 let &title = s:old_title | |
1448 let &icon = s:old_icon | |
1449 let &ru = s:old_ru | |
1450 let &sc = s:old_sc | |
1451 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
|
1452 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
|
1453 unlet s:old_title s:old_icon s:old_ru s:old_sc s:cpo_save s:idx s:lnum s:old_ul |
2908 | 1454 |
1455 " vim: ts=8 sw=2 sts=2 |