Mercurial > vim
annotate runtime/optwin.vim @ 33045:0561bf3ba10c v9.0.1813
patch 9.0.1813: linebreak incorrect drawn with breakindent
Commit: https://github.com/vim/vim/commit/1d3e0e8f3110a7807431eae056914ccea57b057b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Aug 28 21:20:16 2023 +0200
patch 9.0.1813: linebreak incorrect drawn with breakindent
Problem: 'linebreak' is incorrectly drawn after 'breakindent'.
Solution: Don't include 'breakindent' size when already after it.
closes: #12937
closes: #12940
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Aug 2023 21:30:08 +0200 |
parents | 4027cefc2aab |
children | 7ff767f84630 |
rev | line source |
---|---|
7 | 1 " These commands create the option window. |
2 " | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
31579
diff
changeset
|
3 " Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
31579
diff
changeset
|
4 " Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
31579
diff
changeset
|
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 6 |
7 " 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
|
8 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
|
9 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
|
10 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
|
11 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
|
12 if win_gotoid(winids[0]) == 1 |
7 | 13 finish |
14 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
|
15 endif |
7 | 16 endif |
17 | |
18 " Make sure the '<' flag is not included in 'cpoptions', otherwise <CR> would | |
19 " not be recognized. See ":help 'cpoptions'". | |
20 let s:cpo_save = &cpo | |
21 set cpo&vim | |
22 | |
23 " 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
|
24 func <SID>CR() |
7 | 25 |
26 " If on a continued comment line, go back to the first comment line | |
2908 | 27 let lnum = search("^[^\t]", 'bWcn') |
7 | 28 let line = getline(lnum) |
29 | |
30 " <CR> on a "set" line executes the option line | |
31 if match(line, "^ \tset ") >= 0 | |
32 | |
33 " For a local option: go to the previous window | |
34 " If this is a help window, go to the window below it | |
35 let thiswin = winnr() | |
36 let local = <SID>Find(lnum) | |
37 if local >= 0 | |
38 exe line | |
39 call <SID>Update(lnum, line, local, thiswin) | |
40 endif | |
41 | |
42 " <CR> on a "option" line shows help for that option | |
43 elseif match(line, "^[a-z]") >= 0 | |
44 let name = substitute(line, '\([^\t]*\).*', '\1', "") | |
45 exe "help '" . name . "'" | |
46 | |
47 " <CR> on an index line jumps to the group | |
48 elseif match(line, '^ \=[0-9]') >= 0 | |
49 exe "norm! /" . line . "\<CR>zt" | |
50 endif | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
51 endfunc |
7 | 52 |
53 " 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
|
54 func <SID>Space() |
7 | 55 |
56 let lnum = line(".") | |
57 let line = getline(lnum) | |
58 | |
59 " <Space> on a "set" line refreshes the option line | |
60 if match(line, "^ \tset ") >= 0 | |
61 | |
62 " For a local option: go to the previous window | |
63 " If this is a help window, go to the window below it | |
64 let thiswin = winnr() | |
65 let local = <SID>Find(lnum) | |
66 if local >= 0 | |
67 call <SID>Update(lnum, line, local, thiswin) | |
68 endif | |
69 | |
70 endif | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
71 endfunc |
7 | 72 |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
73 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
|
74 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
|
75 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
|
76 |
7 | 77 " find the window in which the option applies |
78 " 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
|
79 func <SID>Find(lnum) |
22180
786ca9e1dc9a
patch 8.2.1639: options window cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
80 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
|
81 if line =~ s:local_to_window || line =~ s:local_to_buffer |
7 | 82 let local = 1 |
83 let thiswin = winnr() | |
2908 | 84 wincmd p |
7 | 85 if exists("b:current_syntax") && b:current_syntax == "help" |
2908 | 86 wincmd j |
7 | 87 if winnr() == thiswin |
2908 | 88 wincmd j |
7 | 89 endif |
90 endif | |
91 else | |
92 let local = 0 | |
93 endif | |
94 if local && (winnr() == thiswin || (exists("b:current_syntax") | |
95 \ && b:current_syntax == "help")) | |
96 echo "Don't know in which window" | |
97 let local = -1 | |
98 endif | |
99 return local | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
100 endfunc |
7 | 101 |
102 " 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
|
103 func <SID>Update(lnum, line, local, thiswin) |
7 | 104 " get the new value of the option and update the option window line |
105 if match(a:line, "=") >= 0 | |
106 let name = substitute(a:line, '^ \tset \([^=]*\)=.*', '\1', "") | |
107 else | |
108 let name = substitute(a:line, '^ \tset \(no\)\=\([a-z]*\).*', '\2', "") | |
109 endif | |
110 if name == "pt" && &pt =~ "\x80" | |
111 let val = <SID>PTvalue() | |
112 else | |
2908 | 113 let val = escape(eval('&' . name), " \t\\\"|") |
7 | 114 endif |
115 if a:local | |
2908 | 116 exe a:thiswin . "wincmd w" |
7 | 117 endif |
118 if match(a:line, "=") >= 0 || (val != "0" && val != "1") | |
119 call setline(a:lnum, " \tset " . name . "=" . val) | |
120 else | |
121 if val | |
122 call setline(a:lnum, " \tset " . name . "\tno" . name) | |
123 else | |
124 call setline(a:lnum, " \tset no" . name . "\t" . name) | |
125 endif | |
126 endif | |
127 set nomodified | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
128 endfunc |
7 | 129 |
130 " 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
|
131 " Reset 'undolevels' to avoid undo'ing until the buffer is empty. |
7 | 132 let s:old_title = &title |
133 let s:old_icon = &icon | |
134 let s:old_sc = &sc | |
135 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
|
136 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
|
137 set notitle noicon nosc noru ul=-1 |
7 | 138 |
139 " If the current window is a help window, try finding a non-help window. | |
140 " Relies on syntax highlighting to be switched on. | |
141 let s:thiswin = winnr() | |
142 while exists("b:current_syntax") && b:current_syntax == "help" | |
2908 | 143 wincmd w |
7 | 144 if s:thiswin == winnr() |
145 break | |
146 endif | |
147 endwhile | |
148 | |
12039
84066f043ab9
patch 8.0.0900: :tab options doesn't open a new tab page
Christian Brabandt <cb@256bit.org>
parents:
11914
diff
changeset
|
149 " 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
|
150 exe $OPTWIN_CMD . ' new option-window' |
2908 | 151 setlocal ts=15 tw=0 noro buftype=nofile |
7 | 152 |
153 " 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
|
154 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
|
155 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
|
156 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
|
157 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
|
158 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
|
159 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
|
160 call append(6, gettext('" Hit <Space> on a "set" line to refresh it.')) |
7 | 161 |
162 " These functions are called often below. Keep them fast! | |
163 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
164 " 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
|
165 " 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
|
166 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
|
167 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
|
168 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
|
169 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
|
170 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
|
171 endfor |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
172 endfunc |
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
173 |
7 | 174 " 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
|
175 func <SID>BinOptionL(name) |
2908 | 176 let val = getwinvar(winnr('#'), '&' . a:name) |
7 | 177 call append("$", substitute(substitute(" \tset " . val . a:name . "\t" . |
178 \!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
|
179 endfunc |
7 | 180 |
181 " 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
|
182 func <SID>BinOptionG(name, val) |
7 | 183 call append("$", substitute(substitute(" \tset " . a:val . a:name . "\t" . |
184 \!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
|
185 endfunc |
7 | 186 |
187 " 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
|
188 func <SID>OptionL(name) |
2908 | 189 let val = escape(getwinvar(winnr('#'), '&' . a:name), " \t\\\"|") |
7 | 190 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
|
191 endfunc |
7 | 192 |
193 " 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
|
194 func <SID>OptionG(name, val) |
2908 | 195 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
|
196 endfunc |
7 | 197 |
198 let s:idx = 1 | |
199 let s:lnum = line("$") | |
200 call append("$", "") | |
201 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
202 func <SID>Header(text) |
7 | 203 let line = s:idx . " " . a:text |
204 if s:idx < 10 | |
205 let line = " " . line | |
206 endif | |
207 call append("$", "") | |
208 call append("$", line) | |
209 call append("$", "") | |
210 call append(s:lnum, line) | |
211 let s:idx = s:idx + 1 | |
212 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
|
213 endfunc |
7 | 214 |
215 " 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
|
216 func <SID>PTvalue() |
7 | 217 redir @a |
218 silent set pt | |
219 redir END | |
220 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
|
221 endfunc |
7 | 222 |
223 " Restore the previous value of 'cpoptions' here, it's used below. | |
224 let &cpo = s:cpo_save | |
225 | |
226 " List of all options, organized by function. | |
227 " The text should be sufficient to know what the option is used for. | |
228 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
229 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
|
230 call <SID>AddOption("compatible", gettext("behave very Vi compatible (not advisable)")) |
7 | 231 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
|
232 call <SID>AddOption("cpoptions", gettext("list of flags to specify Vi compatibility")) |
7 | 233 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
|
234 call <SID>AddOption("insertmode", gettext("use Insert mode as the default mode")) |
7 | 235 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
|
236 call <SID>AddOption("paste", gettext("paste mode, insert typed text literally")) |
7 | 237 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
|
238 call <SID>AddOption("pastetoggle", gettext("key sequence to toggle paste mode")) |
7 | 239 if &pt =~ "\x80" |
240 call append("$", " \tset pt=" . <SID>PTvalue()) | |
241 else | |
242 call <SID>OptionG("pt", &pt) | |
243 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
244 call <SID>AddOption("runtimepath", gettext("list of directories used for runtime files and plugins")) |
7 | 245 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
|
246 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
|
247 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
|
248 call <SID>AddOption("helpfile", gettext("name of the main help file")) |
7 | 249 call <SID>OptionG("hf", &hf) |
250 | |
251 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
252 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
|
253 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
|
254 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
|
255 call <SID>AddOption("startofline", gettext("many jump commands move the cursor to the first non-blank\ncharacter of a line")) |
7 | 256 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
|
257 call <SID>AddOption("paragraphs", gettext("nroff macro names that separate paragraphs")) |
7 | 258 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
|
259 call <SID>AddOption("sections", gettext("nroff macro names that separate sections")) |
7 | 260 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
|
261 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
|
262 call append("$", "\t" .. s:global_or_local) |
7 | 263 call <SID>OptionG("pa", &pa) |
26591 | 264 call <SID>AddOption("cdhome", gettext(":cd without argument goes to the home directory")) |
265 call <SID>BinOptionG("cdh", &cdh) | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
266 call <SID>AddOption("cdpath", gettext("list of directory names used for :cd")) |
7 | 267 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
|
268 if exists("+autochdir") |
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("autochdir", gettext("change to directory of file in buffer")) |
7 | 270 call <SID>BinOptionG("acd", &acd) |
271 endif | |
24268
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
22824
diff
changeset
|
272 call <SID>AddOption("autoshelldir", gettext("change to pwd of shell in terminal buffer")) |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
22824
diff
changeset
|
273 call <SID>BinOptionG("asd", &asd) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
274 call <SID>AddOption("wrapscan", gettext("search commands wrap around the end of the buffer")) |
7 | 275 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
|
276 call <SID>AddOption("incsearch", gettext("show match for partly typed search command")) |
7 | 277 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
|
278 call <SID>AddOption("magic", gettext("change the way backslashes are used in search patterns")) |
7 | 279 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
|
280 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
|
281 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
|
282 call <SID>AddOption("ignorecase", gettext("ignore case when using a search pattern")) |
7 | 283 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
|
284 call <SID>AddOption("smartcase", gettext("override 'ignorecase' when pattern has upper case characters")) |
7 | 285 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
|
286 call <SID>AddOption("casemap", gettext("what method to use for changing case of letters")) |
7 | 287 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
|
288 call <SID>AddOption("maxmempattern", gettext("maximum amount of memory in Kbyte used for pattern matching")) |
184 | 289 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
|
290 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
|
291 call append("$", "\t" .. s:global_or_local) |
7 | 292 call <SID>OptionG("def", &def) |
293 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
|
294 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
|
295 call append("$", "\t" .. s:local_to_buffer) |
7 | 296 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
|
297 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
|
298 call append("$", "\t" .. s:local_to_buffer) |
7 | 299 call <SID>OptionL("inex") |
300 endif | |
301 | |
302 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
303 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
|
304 call <SID>AddOption("tagbsearch", gettext("use binary searching in tags files")) |
7 | 305 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
|
306 call <SID>AddOption("taglength", gettext("number of significant characters in a tag name or zero")) |
7 | 307 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
|
308 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
|
309 call append("$", "\t" .. s:global_or_local) |
7 | 310 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
|
311 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
|
312 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
|
313 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
|
314 call <SID>AddOption("tagrelative", gettext("file names in a tags file are relative to the tags file")) |
7 | 315 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
|
316 call <SID>AddOption("tagstack", gettext("a :tag command will use the tagstack")) |
7 | 317 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
|
318 call <SID>AddOption("showfulltag", gettext("when completing tags in Insert mode show more info")) |
7 | 319 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
|
320 if has("eval") |
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("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
|
322 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
|
323 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
|
324 endif |
7 | 325 if has("cscope") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
326 call <SID>AddOption("cscopeprg", gettext("command for executing cscope")) |
7 | 327 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
|
328 call <SID>AddOption("cscopetag", gettext("use cscope for tag commands")) |
7 | 329 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
|
330 call <SID>AddOption("cscopetagorder", gettext("0 or 1; the order in which \":cstag\" performs a search")) |
7 | 331 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
|
332 call <SID>AddOption("cscopeverbose", gettext("give messages when adding a cscope database")) |
7 | 333 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
|
334 call <SID>AddOption("cscopepathcomp", gettext("how many components of the path to show")) |
7 | 335 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
|
336 call <SID>AddOption("cscopequickfix", gettext("when to open a quickfix window for cscope")) |
7 | 337 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
|
338 call <SID>AddOption("cscoperelative", gettext("file names in a cscope file are relative to that file")) |
2908 | 339 call <SID>BinOptionG("csre", &csre) |
7 | 340 endif |
341 | |
342 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
343 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
|
344 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
|
345 call append("$", "\t" .. s:local_to_window) |
7 | 346 call <SID>OptionL("scr") |
30610
6c6ac189a05f
patch 9.0.0640: cannot scroll by screen line if a line wraps
Bram Moolenaar <Bram@vim.org>
parents:
30324
diff
changeset
|
347 call <SID>AddOption("smoothscroll", gettext("scroll by screen line")) |
6c6ac189a05f
patch 9.0.0640: cannot scroll by screen line if a line wraps
Bram Moolenaar <Bram@vim.org>
parents:
30324
diff
changeset
|
348 call append("$", "\t" .. s:local_to_window) |
6c6ac189a05f
patch 9.0.0640: cannot scroll by screen line if a line wraps
Bram Moolenaar <Bram@vim.org>
parents:
30324
diff
changeset
|
349 call <SID>BinOptionL("sms") |
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("scrolloff", gettext("number of screen lines to show around the cursor")) |
7 | 351 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
|
352 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
|
353 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
|
354 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
|
355 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
|
356 call append("$", "\t" .. s:local_to_window) |
7 | 357 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
|
358 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
|
359 call append("$", "\t" .. s:local_to_window) |
5995 | 360 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
|
361 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
|
362 call append("$", "\t" .. s:local_to_window) |
5995 | 363 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
|
364 call <SID>AddOption("breakat", gettext("which characters might cause a line break")) |
7 | 365 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
|
366 call <SID>AddOption("showbreak", gettext("string to put before wrapped screen lines")) |
7 | 367 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
|
368 call <SID>AddOption("sidescroll", gettext("minimal number of columns to scroll horizontally")) |
7 | 369 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
|
370 call <SID>AddOption("sidescrolloff", gettext("minimal number of columns to keep left and right of the cursor")) |
7 | 371 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
|
372 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 | 373 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
|
374 call <SID>AddOption("fillchars", gettext("characters to use for the status line, folds and filler lines")) |
7 | 375 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
|
376 call <SID>AddOption("cmdheight", gettext("number of lines used for the command-line")) |
7 | 377 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
|
378 call <SID>AddOption("columns", gettext("width of the display")) |
7 | 379 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
|
380 call <SID>AddOption("lines", gettext("number of lines in the display")) |
7 | 381 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
|
382 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
|
383 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
|
384 call <SID>AddOption("lazyredraw", gettext("don't redraw while executing macros")) |
7 | 385 call <SID>BinOptionG("lz", &lz) |
1595 | 386 if has("reltime") |
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("redrawtime", gettext("timeout for 'hlsearch' and :match highlighting in msec")) |
1595 | 388 call append("$", " \tset rdt=" . &rdt) |
389 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
390 call <SID>AddOption("writedelay", gettext("delay in msec for each char written to the display\n(for debugging)")) |
7 | 391 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
|
392 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
|
393 call append("$", "\t" .. s:local_to_window) |
7 | 394 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
|
395 call <SID>AddOption("listchars", gettext("list of strings used for list mode")) |
7 | 396 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
|
397 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
|
398 call append("$", "\t" .. s:local_to_window) |
7 | 399 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
|
400 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
|
401 call append("$", "\t" .. s:local_to_window) |
2178
c6f1aa1e9f32
Add 'relativenumber' patch from Markus Heidelberg.
Bram Moolenaar <bram@vim.org>
parents:
1595
diff
changeset
|
402 call <SID>BinOptionL("rnu") |
13 | 403 if has("linebreak") |
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("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
|
405 call append("$", "\t" .. s:local_to_window) |
13 | 406 call <SID>OptionL("nuw") |
407 endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
408 if has("conceal") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
409 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
|
410 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
|
411 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
|
412 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
|
413 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
|
414 call <SID>OptionL("cocu") |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
415 endif |
7 | 416 |
417 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
418 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
|
419 call <SID>AddOption("background", gettext("\"dark\" or \"light\"; the background color brightness")) |
7 | 420 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
|
421 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
|
422 call append("$", "\t" .. s:local_to_buffer) |
15729 | 423 call <SID>OptionL("ft") |
7 | 424 if has("syntax") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
425 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
|
426 call append("$", "\t" .. s:local_to_buffer) |
7 | 427 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
|
428 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
|
429 call append("$", "\t" .. s:local_to_buffer) |
409 | 430 call <SID>OptionL("smc") |
7 | 431 endif |
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("highlight", gettext("which highlighting to use for various occasions")) |
7 | 433 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
|
434 call <SID>AddOption("hlsearch", gettext("highlight all matches for the last used search pattern")) |
7 | 435 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
|
436 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
|
437 call append("$", "\t" .. s:local_to_window) |
16808 | 438 call <SID>OptionL("wcr") |
9046
057fb9d0191b
commit https://github.com/vim/vim/commit/8a24b794b89916c8074892e7b25121a21f1fa9c9
Christian Brabandt <cb@256bit.org>
parents:
9042
diff
changeset
|
439 if has("termguicolors") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
440 call <SID>AddOption("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
|
441 call <SID>BinOptionG("tgc", &tgc) |
9042
21bd2230c5cd
commit https://github.com/vim/vim/commit/8e3d1b6326c103cc92f8d07b1161ee5172acf201
Christian Brabandt <cb@256bit.org>
parents:
8962
diff
changeset
|
442 endif |
381 | 443 if has("syntax") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
444 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
|
445 call append("$", "\t" .. s:local_to_window) |
737 | 446 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
|
447 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
|
448 call append("$", "\t" .. s:local_to_window) |
737 | 449 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
|
450 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
|
451 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
|
452 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
|
453 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
|
454 call append("$", "\t" .. s:local_to_window) |
2341 | 455 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
|
456 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
|
457 call append("$", "\t" .. s:local_to_window) |
381 | 458 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
|
459 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
|
460 call append("$", "\t" .. s:local_to_buffer) |
381 | 461 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
|
462 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
|
463 call append("$", "\t" .. s:local_to_buffer) |
381 | 464 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
|
465 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
|
466 call append("$", "\t" .. s:local_to_buffer) |
393 | 467 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
|
468 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
|
469 call append("$", "\t" .. s:local_to_buffer) |
20856 | 470 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
|
471 call <SID>AddOption("spellsuggest", gettext("methods used to suggest corrections")) |
381 | 472 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
|
473 call <SID>AddOption("mkspellmem", gettext("amount of memory used by :mkspell before compressing")) |
500 | 474 call <SID>OptionG("msm", &msm) |
381 | 475 endif |
7 | 476 |
477 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
478 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
|
479 call <SID>AddOption("laststatus", gettext("0, 1 or 2; when to use a status line for the last window")) |
7 | 480 call append("$", " \tset ls=" . &ls) |
481 if has("statusline") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
482 call <SID>AddOption("statusline", gettext("alternate format to be used for a status line")) |
7 | 483 call <SID>OptionG("stl", &stl) |
484 endif | |
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("equalalways", gettext("make all windows the same size when adding/removing windows")) |
7 | 486 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
|
487 call <SID>AddOption("eadirection", gettext("in which direction 'equalalways' works: \"ver\", \"hor\" or \"both\"")) |
15729 | 488 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
|
489 call <SID>AddOption("winheight", gettext("minimal number of lines used for the current window")) |
7 | 490 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
|
491 call <SID>AddOption("winminheight", gettext("minimal number of lines used for any window")) |
7 | 492 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
|
493 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
|
494 call append("$", "\t" .. s:local_to_window) |
7 | 495 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
|
496 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
|
497 call append("$", "\t" .. s:local_to_window) |
779 | 498 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
|
499 call <SID>AddOption("winwidth", gettext("minimal number of columns used for the current window")) |
15729 | 500 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
|
501 call <SID>AddOption("winminwidth", gettext("minimal number of columns used for any window")) |
15729 | 502 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
|
503 call <SID>AddOption("helpheight", gettext("initial height of the help window")) |
7 | 504 call append("$", " \tset hh=" . &hh) |
505 if has("quickfix") | |
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("previewpopup", gettext("use a popup window for preview")) |
17433 | 507 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
|
508 call <SID>AddOption("previewheight", gettext("default height for the preview window")) |
7 | 509 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
|
510 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
|
511 call append("$", "\t" .. s:local_to_window) |
7 | 512 call <SID>BinOptionL("pvw") |
513 endif | |
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("hidden", gettext("don't unload a buffer when no longer shown in a window")) |
7 | 515 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
|
516 call <SID>AddOption("switchbuf", gettext("\"useopen\" and/or \"split\"; which window to use when jumping\nto a buffer")) |
7 | 517 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
|
518 call <SID>AddOption("splitbelow", gettext("a new window is put below the current one")) |
7 | 519 call <SID>BinOptionG("sb", &sb) |
30624
f2f35161d75a
patch 9.0.0647: the 'splitscroll' option is not a good name
Bram Moolenaar <Bram@vim.org>
parents:
30610
diff
changeset
|
520 call <SID>AddOption("splitkeep", gettext("determines scroll behavior for split windows")) |
f2f35161d75a
patch 9.0.0647: the 'splitscroll' option is not a good name
Bram Moolenaar <Bram@vim.org>
parents:
30610
diff
changeset
|
521 call <SID>BinOptionG("spk", &spk) |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
522 call <SID>AddOption("splitright", gettext("a new window is put right of the current one")) |
15729 | 523 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
|
524 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
|
525 call append("$", "\t" .. s:local_to_window) |
15729 | 526 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
|
527 call <SID>AddOption("scrollopt", gettext("\"ver\", \"hor\" and/or \"jump\"; list of options for 'scrollbind'")) |
15729 | 528 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
|
529 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
|
530 call append("$", "\t" .. s:local_to_window) |
15729 | 531 call <SID>BinOptionL("crb") |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11077
diff
changeset
|
532 if has("terminal") |
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("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
|
534 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
|
535 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
|
536 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
|
537 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
|
538 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
|
539 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
|
540 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
|
541 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
|
542 if has('win32') |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
543 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
|
544 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
|
545 endif |
12182
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
546 if exists("&winptydll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
547 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
|
548 call <SID>OptionG("winptydll", &winptydll) |
7e6185446ea6
patch 8.0.0971: 'winptydll' missing from :options
Christian Brabandt <cb@256bit.org>
parents:
12039
diff
changeset
|
549 endif |
11659
49c12c93abf3
Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents:
11077
diff
changeset
|
550 endif |
7 | 551 |
552 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
553 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
|
554 call <SID>AddOption("showtabline", gettext("0, 1 or 2; when to use a tab pages line")) |
714 | 555 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
|
556 call <SID>AddOption("tabpagemax", gettext("maximum number of tab pages to open for -p and \"tab all\"")) |
714 | 557 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
|
558 call <SID>AddOption("tabline", gettext("custom tab pages line")) |
714 | 559 call <SID>OptionG("tal", &tal) |
842 | 560 if has("gui") |
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("guitablabel", gettext("custom tab page label for the GUI")) |
842 | 562 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
|
563 call <SID>AddOption("guitabtooltip", gettext("custom tab page tooltip for the GUI")) |
842 | 564 call <SID>OptionG("gtt", >t) |
565 endif | |
714 | 566 |
567 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
568 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
|
569 call <SID>AddOption("term", gettext("name of the used terminal")) |
7 | 570 call <SID>OptionG("term", &term) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
571 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
572 call <SID>AddOption("ttytype", gettext("alias for 'term'")) |
7 | 573 call <SID>OptionG("tty", &tty) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
574 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
575 call <SID>AddOption("ttybuiltin", gettext("check built-in termcaps first")) |
7 | 576 call <SID>BinOptionG("tbi", &tbi) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
577 |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
578 call <SID>AddOption("ttyfast", gettext("terminal connection is fast")) |
7 | 579 call <SID>BinOptionG("tf", &tf) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
580 |
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
581 call <SID>AddOption("xtermcodes", gettext("request terminal key codes when an xterm is detected")) |
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
582 call <SID>BinOptionG("xtermcodes", &xtermcodes) |
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
583 |
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("weirdinvert", gettext("terminal that requires extra redrawing")) |
7 | 585 call <SID>BinOptionG("wiv", &wiv) |
26670
a77b661439f9
patch 8.2.3864: cannot disable requesting key codes from xterm
Bram Moolenaar <Bram@vim.org>
parents:
26591
diff
changeset
|
586 |
31200 | 587 call <SID>AddOption("keyprotocol", gettext("what keyboard protocol to use for which terminal")) |
588 call <SID>OptionG("kpc", &kpc) | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
589 call <SID>AddOption("esckeys", gettext("recognize keys that start with <Esc> in Insert mode")) |
7 | 590 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
|
591 call <SID>AddOption("scrolljump", gettext("minimal number of lines to scroll at a time")) |
7 | 592 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
|
593 call <SID>AddOption("ttyscroll", gettext("maximum number of lines to use scrolling instead of redrawing")) |
7 | 594 call append("$", " \tset tsl=" . &tsl) |
9536
b2aada04d84e
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Christian Brabandt <cb@256bit.org>
parents:
9048
diff
changeset
|
595 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
|
596 call <SID>AddOption("guicursor", gettext("specifies what the cursor looks like in different modes")) |
7 | 597 call <SID>OptionG("gcr", &gcr) |
598 endif | |
599 if has("title") | |
600 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
|
601 call <SID>AddOption("title", gettext("show info in the window title")) |
7 | 602 call <SID>BinOptionG("title", &title) |
603 set notitle | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
604 call <SID>AddOption("titlelen", gettext("percentage of 'columns' used for the window title")) |
7 | 605 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
|
606 call <SID>AddOption("titlestring", gettext("when not empty, string to be used for the window title")) |
7 | 607 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
|
608 call <SID>AddOption("titleold", gettext("string to restore the title to when exiting Vim")) |
7 | 609 call <SID>OptionG("titleold", &titleold) |
610 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
|
611 call <SID>AddOption("icon", gettext("set the text of the icon for this window")) |
7 | 612 call <SID>BinOptionG("icon", &icon) |
613 set noicon | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
614 call <SID>AddOption("iconstring", gettext("when not empty, text for the icon of this window")) |
7 | 615 call <SID>OptionG("iconstring", &iconstring) |
616 endif | |
617 if has("win32") | |
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("restorescreen", gettext("restore the screen contents when exiting Vim")) |
7 | 619 call <SID>BinOptionG("rs", &rs) |
620 endif | |
621 | |
622 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
623 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
|
624 call <SID>AddOption("mouse", gettext("list of flags for using the mouse")) |
7 | 625 call <SID>OptionG("mouse", &mouse) |
626 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
627 call <SID>AddOption("mousefocus", gettext("the window with the mouse pointer becomes the current one")) |
7 | 628 call <SID>BinOptionG("mousef", &mousef) |
18594 | 629 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
630 call <SID>AddOption("scrollfocus", gettext("the window with the mouse pointer scrolls with the mouse wheel")) |
18594 | 631 call <SID>BinOptionG("scf", &scf) |
632 if has("gui") | |
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("mousehide", gettext("hide the mouse pointer while typing")) |
7 | 634 call <SID>BinOptionG("mh", &mh) |
28353
8bc8071928ed
patch 8.2.4702: C++ scope labels are hard-coded
Bram Moolenaar <Bram@vim.org>
parents:
26708
diff
changeset
|
635 call <SID>AddOption("mousemoveevent", gettext("report mouse movement events")) |
8bc8071928ed
patch 8.2.4702: C++ scope labels are hard-coded
Bram Moolenaar <Bram@vim.org>
parents:
26708
diff
changeset
|
636 call <SID>BinOptionG("mousemev", &mousemev) |
7 | 637 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
638 call <SID>AddOption("mousemodel", gettext("\"extend\", \"popup\" or \"popup_setpos\"; what the right\nmouse button is used for")) |
7 | 639 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
|
640 call <SID>AddOption("mousetime", gettext("maximum time in msec to recognize a double-click")) |
7 | 641 call append("$", " \tset mouset=" . &mouset) |
22723 | 642 call <SID>AddOption("ttymouse", gettext("\"xterm\", \"xterm2\", \"sgr\", etc.; type of mouse")) |
7 | 643 call <SID>OptionG("ttym", &ttym) |
644 if has("mouseshape") | |
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("mouseshape", gettext("what the mouse pointer looks like in different modes")) |
7 | 646 call <SID>OptionG("mouses", &mouses) |
647 endif | |
648 | |
649 | |
650 if has("gui") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
651 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
|
652 call <SID>AddOption("guifont", gettext("list of font names to be used in the GUI")) |
7 | 653 call <SID>OptionG("gfn", &gfn) |
654 if has("xfontset") | |
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("guifontset", gettext("pair of fonts to be used, for multibyte editing")) |
7 | 656 call <SID>OptionG("gfs", &gfs) |
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("guifontwide", gettext("list of font names to be used for double-wide characters")) |
7 | 659 call <SID>OptionG("gfw", &gfw) |
660 if has("mac") | |
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("antialias", gettext("use smooth, antialiased fonts")) |
7 | 662 call <SID>BinOptionG("anti", &anti) |
663 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
664 call <SID>AddOption("guioptions", gettext("list of flags that specify how the GUI works")) |
7 | 665 call <SID>OptionG("go", &go) |
666 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
|
667 call <SID>AddOption("toolbar", gettext("\"icons\", \"text\" and/or \"tooltips\"; how to show the toolbar")) |
7 | 668 call <SID>OptionG("tb", &tb) |
669 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
|
670 call <SID>AddOption("toolbariconsize", gettext("size of toolbar icons")) |
7 | 671 call <SID>OptionG("tbis", &tbis) |
672 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
673 call <SID>AddOption("guiheadroom", gettext("room (in pixels) left above/below the window")) |
7 | 674 call append("$", " \tset ghr=" . &ghr) |
26100 | 675 call <SID>AddOption("guiligatures", gettext("list of ASCII characters that can be combined into complex shapes")) |
26050 | 676 call <SID>OptionG("gli", &gli) |
7 | 677 endif |
6153 | 678 if has("directx") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
679 call <SID>AddOption("renderoptions", gettext("options for text rendering")) |
6153 | 680 call <SID>OptionG("rop", &rop) |
681 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
682 call <SID>AddOption("guipty", gettext("use a pseudo-tty for I/O to external commands")) |
7 | 683 call <SID>BinOptionG("guipty", &guipty) |
684 if has("browse") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
685 call <SID>AddOption("browsedir", gettext("\"last\", \"buffer\" or \"current\": which directory used for the file browser")) |
7 | 686 call <SID>OptionG("bsdir", &bsdir) |
687 endif | |
688 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
|
689 call <SID>AddOption("langmenu", gettext("language to be used for the menus")) |
7 | 690 call <SID>OptionG("langmenu", &lm) |
691 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
692 call <SID>AddOption("menuitems", gettext("maximum number of items in one menu")) |
7 | 693 call append("$", " \tset mis=" . &mis) |
694 if has("winaltkeys") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
695 call <SID>AddOption("winaltkeys", gettext("\"no\", \"yes\" or \"menu\"; how to use the ALT key")) |
7 | 696 call <SID>OptionG("wak", &wak) |
697 endif | |
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("linespace", gettext("number of pixel lines to use between characters")) |
7 | 699 call append("$", " \tset lsp=" . &lsp) |
12909 | 700 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
|
701 call <SID>AddOption("balloondelay", gettext("delay in milliseconds before a balloon may pop up")) |
7 | 702 call append("$", " \tset bdlay=" . &bdlay) |
12909 | 703 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
|
704 call <SID>AddOption("ballooneval", gettext("use balloon evaluation in the GUI")) |
12909 | 705 call <SID>BinOptionG("beval", &beval) |
706 endif | |
707 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
|
708 call <SID>AddOption("balloonevalterm", gettext("use balloon evaluation in the terminal")) |
12909 | 709 call <SID>BinOptionG("bevalterm", &beval) |
710 endif | |
184 | 711 if has("eval") |
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("balloonexpr", gettext("expression to show in balloon eval")) |
184 | 713 call append("$", " \tset bexpr=" . &bexpr) |
7 | 714 endif |
715 endif | |
716 endif | |
717 | |
718 if has("printer") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
719 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
|
720 call <SID>AddOption("printoptions", gettext("list of items that control the format of :hardcopy output")) |
15 | 721 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
|
722 call <SID>AddOption("printdevice", gettext("name of the printer to be used for :hardcopy")) |
7 | 723 call <SID>OptionG("pdev", &pdev) |
15 | 724 if has("postscript") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
725 call <SID>AddOption("printexpr", gettext("expression used to print the PostScript file for :hardcopy")) |
15 | 726 call <SID>OptionG("pexpr", &pexpr) |
727 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
728 call <SID>AddOption("printfont", gettext("name of the font to be used for :hardcopy")) |
7 | 729 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
|
730 call <SID>AddOption("printheader", gettext("format of the header used for :hardcopy")) |
7 | 731 call <SID>OptionG("pheader", &pheader) |
15 | 732 if has("postscript") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
733 call <SID>AddOption("printencoding", gettext("encoding used to print the PostScript file for :hardcopy")) |
15 | 734 call <SID>OptionG("penc", &penc) |
735 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
736 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
|
737 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
|
738 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
|
739 call <SID>OptionG("pmbfn", &pmbfn) |
7 | 740 endif |
741 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
742 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
|
743 call <SID>AddOption("terse", gettext("add 's' flag in 'shortmess' (don't show search message)")) |
7 | 744 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
|
745 call <SID>AddOption("shortmess", gettext("list of flags to make messages shorter")) |
7 | 746 call <SID>OptionG("shm", &shm) |
31579 | 747 call <SID>AddOption("showcmd", gettext("show (partial) command keys in location given by 'showcmdloc'")) |
7 | 748 let &sc = s:old_sc |
749 call <SID>BinOptionG("sc", &sc) | |
750 set nosc | |
31579 | 751 call <SID>AddOption("showcmdloc", gettext("location where to show the (partial) command keys for 'showcmd'")) |
752 call <SID>OptionG("sloc", &sloc) | |
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("showmode", gettext("display the current mode in the status line")) |
7 | 754 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
|
755 call <SID>AddOption("ruler", gettext("show cursor position below each window")) |
7 | 756 let &ru = s:old_ru |
757 call <SID>BinOptionG("ru", &ru) | |
758 set noru | |
759 if has("statusline") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
760 call <SID>AddOption("rulerformat", gettext("alternate format to be used for the ruler")) |
7 | 761 call <SID>OptionG("ruf", &ruf) |
762 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
763 call <SID>AddOption("report", gettext("threshold for reporting number of changed lines")) |
7 | 764 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
|
765 call <SID>AddOption("verbose", gettext("the higher the more messages are given")) |
7 | 766 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
|
767 call <SID>AddOption("verbosefile", gettext("file to write messages in")) |
381 | 768 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
|
769 call <SID>AddOption("more", gettext("pause listings when the screen is full")) |
7 | 770 call <SID>BinOptionG("more", &more) |
771 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
|
772 call <SID>AddOption("confirm", gettext("start a dialog when a command fails")) |
7 | 773 call <SID>BinOptionG("cf", &cf) |
774 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
775 call <SID>AddOption("errorbells", gettext("ring the bell for error messages")) |
7 | 776 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
|
777 call <SID>AddOption("visualbell", gettext("use a visual bell instead of beeping")) |
7 | 778 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
|
779 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
|
780 call <SID>OptionG("belloff", &belloff) |
7 | 781 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
|
782 call <SID>AddOption("helplang", gettext("list of preferred languages for finding help")) |
7 | 783 call <SID>OptionG("hlg", &hlg) |
784 endif | |
785 | |
786 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
787 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
|
788 call <SID>AddOption("selection", gettext("\"old\", \"inclusive\" or \"exclusive\"; how selecting text behaves")) |
7 | 789 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
|
790 call <SID>AddOption("selectmode", gettext("\"mouse\", \"key\" and/or \"cmd\"; when to start Select mode\ninstead of Visual mode")) |
7 | 791 call <SID>OptionG("slm", &slm) |
792 if has("clipboard") | |
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("clipboard", gettext("\"unnamed\" to use the * register like unnamed register\n\"autoselect\" to always put selected text on the clipboard")) |
7 | 794 call <SID>OptionG("cb", &cb) |
795 endif | |
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("keymodel", gettext("\"startsel\" and/or \"stopsel\"; what special keys can do")) |
7 | 797 call <SID>OptionG("km", &km) |
798 | |
799 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
800 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
|
801 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
|
802 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
|
803 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
|
804 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
|
805 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
|
806 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
|
807 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
|
808 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
|
809 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
|
810 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
|
811 call append("$", "\t" .. s:local_to_buffer) |
7 | 812 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
|
813 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
|
814 call append("$", "\t" .. s:local_to_buffer) |
7 | 815 call <SID>BinOptionL("ro") |
22723 | 816 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
|
817 call append("$", "\t" .. s:local_to_buffer) |
7 | 818 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
|
819 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
|
820 call append("$", "\t" .. s:local_to_buffer) |
7 | 821 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
|
822 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
|
823 call append("$", "\t" .. s:local_to_buffer) |
7 | 824 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
|
825 call <SID>AddOption("backspace", gettext("specifies what <BS>, CTRL-W, etc. can do in Insert mode")) |
7 | 826 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
|
827 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
|
828 call append("$", "\t" .. s:local_to_buffer) |
7 | 829 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
|
830 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
|
831 call append("$", "\t" .. s:local_to_buffer) |
7 | 832 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
|
833 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
|
834 call append("$", "\t" .. s:local_to_buffer) |
41 | 835 call <SID>OptionL("flp") |
714 | 836 if has("eval") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
837 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
|
838 call append("$", "\t" .. s:local_to_buffer) |
714 | 839 call <SID>OptionL("fex") |
840 endif | |
7 | 841 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
|
842 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
|
843 call append("$", "\t" .. s:local_to_buffer) |
7 | 844 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
|
845 call <SID>AddOption("completeopt", gettext("whether to use a popup menu for Insert mode completion")) |
539 | 846 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
|
847 if exists("+completepopup") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
848 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
|
849 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
|
850 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
851 call <SID>AddOption("pumheight", gettext("maximum height of the popup menu")) |
771 | 852 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
|
853 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
|
854 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
|
855 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
|
856 call append("$", "\t" .. s:local_to_buffer) |
12 | 857 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
|
858 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
|
859 call append("$", "\t" .. s:local_to_buffer) |
502 | 860 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
|
861 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
|
862 call append("$", "\t" .. s:global_or_local) |
7 | 863 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
|
864 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
|
865 call append("$", "\t" .. s:global_or_local) |
7 | 866 call <SID>OptionG("tsr", &tsr) |
26050 | 867 call <SID>AddOption("thesaurusfunc", gettext("function used for thesaurus completion")) |
868 call append("$", "\t" .. s:global_or_local) | |
869 call <SID>OptionG("tsrfu", &tsrfu) | |
7 | 870 endif |
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("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
|
872 call append("$", "\t" .. s:local_to_buffer) |
7 | 873 call <SID>BinOptionL("inf") |
874 if has("digraphs") | |
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("digraph", gettext("enable entering digraphs with c1 <BS> c2")) |
7 | 876 call <SID>BinOptionG("dg", &dg) |
877 endif | |
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("tildeop", gettext("the \"~\" command behaves like an operator")) |
7 | 879 call <SID>BinOptionG("top", &top) |
22824 | 880 call <SID>AddOption("operatorfunc", gettext("function called for the \"g@\" operator")) |
625 | 881 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
|
882 call <SID>AddOption("showmatch", gettext("when inserting a bracket, briefly jump to its match")) |
7 | 883 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
|
884 call <SID>AddOption("matchtime", gettext("tenth of a second to show a match for 'showmatch'")) |
7 | 885 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
|
886 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
|
887 call append("$", "\t" .. s:local_to_buffer) |
7 | 888 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
|
889 call <SID>AddOption("joinspaces", gettext("use two spaces after '.' when joining a line")) |
7 | 890 call <SID>BinOptionG("js", &js) |
22723 | 891 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
|
892 call append("$", "\t" .. s:local_to_buffer) |
7 | 893 call <SID>OptionL("nf") |
894 | |
895 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
896 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
|
897 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
|
898 call append("$", "\t" .. s:local_to_buffer) |
7 | 899 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
|
900 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
|
901 call append("$", "\t" .. s:local_to_buffer) |
7 | 902 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
|
903 if has("vartabs") |
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("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
|
905 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
|
906 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
|
907 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
|
908 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
|
909 call <SID>OptionL("vsts") |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13946
diff
changeset
|
910 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
911 call <SID>AddOption("smarttab", gettext("a <Tab> in an indent inserts 'shiftwidth' spaces")) |
7 | 912 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
|
913 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
|
914 call append("$", "\t" .. s:local_to_buffer) |
7 | 915 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
|
916 call <SID>AddOption("shiftround", gettext("round to 'shiftwidth' for \"<<\" and \">>\"")) |
7 | 917 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
|
918 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
|
919 call append("$", "\t" .. s:local_to_buffer) |
7 | 920 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
|
921 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
|
922 call append("$", "\t" .. s:local_to_buffer) |
7 | 923 call <SID>BinOptionL("ai") |
924 if has("smartindent") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
925 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
|
926 call append("$", "\t" .. s:local_to_buffer) |
7 | 927 call <SID>BinOptionL("si") |
928 endif | |
929 if has("cindent") | |
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("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
|
931 call append("$", "\t" .. s:local_to_buffer) |
7 | 932 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
|
933 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
|
934 call append("$", "\t" .. s:local_to_buffer) |
7 | 935 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
|
936 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
|
937 call append("$", "\t" .. s:local_to_buffer) |
7 | 938 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
|
939 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
|
940 call append("$", "\t" .. s:local_to_buffer) |
7 | 941 call <SID>OptionL("cinw") |
28353
8bc8071928ed
patch 8.2.4702: C++ scope labels are hard-coded
Bram Moolenaar <Bram@vim.org>
parents:
26708
diff
changeset
|
942 call <SID>AddOption("cinscopedecls", gettext("list of scope declaration names used by cino-g")) |
8bc8071928ed
patch 8.2.4702: C++ scope labels are hard-coded
Bram Moolenaar <Bram@vim.org>
parents:
26708
diff
changeset
|
943 call append("$", "\t" .. s:local_to_buffer) |
8bc8071928ed
patch 8.2.4702: C++ scope labels are hard-coded
Bram Moolenaar <Bram@vim.org>
parents:
26708
diff
changeset
|
944 call <SID>OptionL("cinsd") |
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("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
|
946 call append("$", "\t" .. s:local_to_buffer) |
7 | 947 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
|
948 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
|
949 call append("$", "\t" .. s:local_to_buffer) |
7 | 950 call <SID>OptionL("indk") |
951 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
952 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
|
953 call append("$", "\t" .. s:local_to_buffer) |
7 | 954 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
|
955 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
|
956 call append("$", "\t" .. s:local_to_buffer) |
7 | 957 call <SID>BinOptionL("pi") |
958 if has("lispindent") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
959 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
|
960 call append("$", "\t" .. s:local_to_buffer) |
7 | 961 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
|
962 call <SID>AddOption("lispwords", gettext("words that change how lisp indenting works")) |
5772 | 963 call <SID>OptionL("lw") |
30875 | 964 call <SID>AddOption("lispoptions", gettext("options for Lisp indenting")) |
965 call <SID>OptionL("lop") | |
7 | 966 endif |
967 | |
968 | |
969 if has("folding") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
970 call <SID>Header(gettext("folding")) |
22723 | 971 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
|
972 call append("$", "\t" .. s:local_to_window) |
7 | 973 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
|
974 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
|
975 call append("$", "\t" .. s:local_to_window) |
7 | 976 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
|
977 call <SID>AddOption("foldlevelstart", gettext("value for 'foldlevel' when starting to edit a file")) |
7 | 978 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
|
979 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
|
980 call append("$", "\t" .. s:local_to_window) |
7 | 981 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
|
982 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
|
983 call append("$", "\t" .. s:local_to_window) |
7 | 984 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
|
985 call <SID>AddOption("foldclose", gettext("set to \"all\" to close a fold when the cursor leaves it")) |
7 | 986 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
|
987 call <SID>AddOption("foldopen", gettext("specifies for which commands a fold will be opened")) |
7 | 988 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
|
989 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
|
990 call append("$", "\t" .. s:local_to_window) |
7 | 991 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
|
992 call <SID>AddOption("commentstring", gettext("template for comments; used to put the marker in")) |
7 | 993 call <SID>OptionL("cms") |
22723 | 994 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
|
995 call append("$", "\t" .. s:local_to_window) |
7 | 996 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
|
997 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
|
998 call append("$", "\t" .. s:local_to_window) |
7 | 999 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
|
1000 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
|
1001 call append("$", "\t" .. s:local_to_window) |
7 | 1002 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
|
1003 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
|
1004 call append("$", "\t" .. s:local_to_window) |
7 | 1005 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
|
1006 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
|
1007 call append("$", "\t" .. s:local_to_window) |
7 | 1008 call <SID>OptionL("fdn") |
1009 endif | |
1010 | |
1011 | |
1012 if has("diff") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1013 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
|
1014 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
|
1015 call append("$", "\t" .. s:local_to_window) |
7 | 1016 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
|
1017 call <SID>AddOption("diffopt", gettext("options for using diff mode")) |
7 | 1018 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
|
1019 call <SID>AddOption("diffexpr", gettext("expression used to obtain a diff file")) |
7 | 1020 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
|
1021 call <SID>AddOption("patchexpr", gettext("expression used to patch a file")) |
7 | 1022 call <SID>OptionG("pex", &pex) |
1023 endif | |
1024 | |
1025 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1026 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
|
1027 call <SID>AddOption("maxmapdepth", gettext("maximum depth of mapping")) |
7 | 1028 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
|
1029 call <SID>AddOption("remap", gettext("recognize mappings in mapped keys")) |
7 | 1030 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
|
1031 call <SID>AddOption("timeout", gettext("allow timing out halfway into a mapping")) |
7 | 1032 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
|
1033 call <SID>AddOption("ttimeout", gettext("allow timing out halfway into a key code")) |
7 | 1034 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
|
1035 call <SID>AddOption("timeoutlen", gettext("time in msec for 'timeout'")) |
7 | 1036 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
|
1037 call <SID>AddOption("ttimeoutlen", gettext("time in msec for 'ttimeout'")) |
7 | 1038 call append("$", " \tset ttm=" . &ttm) |
1039 | |
1040 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1041 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
|
1042 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
|
1043 call append("$", "\t" .. s:local_to_buffer) |
7 | 1044 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
|
1045 call <SID>AddOption("modelineexpr", gettext("allow setting expression options from a modeline")) |
16808 | 1046 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
|
1047 call <SID>AddOption("modelines", gettext("number of lines to check for modelines")) |
7 | 1048 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
|
1049 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
|
1050 call append("$", "\t" .. s:local_to_buffer) |
7 | 1051 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
|
1052 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
|
1053 call append("$", "\t" .. s:local_to_buffer) |
7 | 1054 call <SID>BinOptionL("eol") |
30967 | 1055 call <SID>AddOption("endoffile", gettext("last line in the file followed by CTRL-Z")) |
1056 call append("$", "\t" .. s:local_to_buffer) | |
1057 call <SID>BinOptionL("eof") | |
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("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
|
1059 call append("$", "\t" .. s:local_to_buffer) |
6933 | 1060 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
|
1061 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
|
1062 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
|
1063 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
|
1064 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
|
1065 call append("$", "\t" .. s:local_to_buffer) |
7 | 1066 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
|
1067 call <SID>AddOption("fileformats", gettext("list of file formats to look for when editing a file")) |
7 | 1068 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
|
1069 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
|
1070 call append("$", "\t" .. s:local_to_buffer) |
7 | 1071 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
|
1072 call <SID>AddOption("textauto", gettext("obsolete, use 'fileformats'")) |
7 | 1073 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
|
1074 call <SID>AddOption("write", gettext("writing files is allowed")) |
7 | 1075 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
|
1076 call <SID>AddOption("writebackup", gettext("write a backup file before overwriting a file")) |
7 | 1077 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
|
1078 call <SID>AddOption("backup", gettext("keep a backup after overwriting a file")) |
7 | 1079 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
|
1080 call <SID>AddOption("backupskip", gettext("patterns that specify for which files a backup is not made")) |
7 | 1081 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
|
1082 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
|
1083 call append("$", "\t" .. s:global_or_local) |
7 | 1084 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
|
1085 call <SID>AddOption("backupdir", gettext("list of directories to put backup files in")) |
7 | 1086 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
|
1087 call <SID>AddOption("backupext", gettext("file name extension for the backup file")) |
7 | 1088 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
|
1089 call <SID>AddOption("autowrite", gettext("automatically write a file when leaving a modified buffer")) |
7 | 1090 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
|
1091 call <SID>AddOption("autowriteall", gettext("as 'autowrite', but works with more commands")) |
7 | 1092 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
|
1093 call <SID>AddOption("writeany", gettext("always write without asking for confirmation")) |
7 | 1094 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
|
1095 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
|
1096 call append("$", "\t" .. s:global_or_local) |
7 | 1097 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
|
1098 call <SID>AddOption("patchmode", gettext("keep oldest version of a file; specifies file name extension")) |
7 | 1099 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
|
1100 call <SID>AddOption("fsync", gettext("forcibly sync the file to disk after writing it")) |
36 | 1101 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
|
1102 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
|
1103 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
|
1104 call <SID>BinOptionL("sn") |
22723 | 1105 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
|
1106 call append("$", "\t" .. s:local_to_buffer) |
2198
e741fe7a0547
Updated a few runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2178
diff
changeset
|
1107 call <SID>OptionL("cm") |
7 | 1108 |
1109 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1110 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
|
1111 call <SID>AddOption("directory", gettext("list of directories for the swap file")) |
7 | 1112 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
|
1113 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
|
1114 call append("$", "\t" .. s:local_to_buffer) |
7 | 1115 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
|
1116 call <SID>AddOption("swapsync", gettext("\"sync\", \"fsync\" or empty; how to flush a swap file to disk")) |
7 | 1117 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
|
1118 call <SID>AddOption("updatecount", gettext("number of characters typed to cause a swap file update")) |
7 | 1119 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
|
1120 call <SID>AddOption("updatetime", gettext("time in msec after which the swap file will be updated")) |
7 | 1121 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
|
1122 call <SID>AddOption("maxmem", gettext("maximum amount of memory in Kbyte used for one buffer")) |
7 | 1123 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
|
1124 call <SID>AddOption("maxmemtot", gettext("maximum amount of memory in Kbyte used for all buffers")) |
7 | 1125 call append("$", " \tset mmt=" . &mmt) |
1126 | |
1127 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1128 call <SID>Header(gettext("command line editing")) |
22723 | 1129 call <SID>AddOption("history", gettext("how many command lines are remembered")) |
7 | 1130 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
|
1131 call <SID>AddOption("wildchar", gettext("key that triggers command-line expansion")) |
7 | 1132 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
|
1133 call <SID>AddOption("wildcharm", gettext("like 'wildchar' but can also be used in a mapping")) |
7 | 1134 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
|
1135 call <SID>AddOption("wildmode", gettext("specifies how command line completion works")) |
7 | 1136 call <SID>OptionG("wim", &wim) |
40 | 1137 if has("wildoptions") |
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("wildoptions", gettext("empty or \"tagfile\" to list file name of matching tags")) |
40 | 1139 call <SID>OptionG("wop", &wop) |
1140 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1141 call <SID>AddOption("suffixes", gettext("list of file name extensions that have a lower priority")) |
7 | 1142 call <SID>OptionG("su", &su) |
1143 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
|
1144 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
|
1145 call append("$", "\t" .. s:local_to_buffer) |
7 | 1146 call <SID>OptionL("sua") |
1147 endif | |
1148 if has("wildignore") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1149 call <SID>AddOption("wildignore", gettext("list of patterns to ignore files for file name completion")) |
7 | 1150 call <SID>OptionG("wig", &wig) |
1151 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1152 call <SID>AddOption("fileignorecase", gettext("ignore case when using file names")) |
4254 | 1153 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
|
1154 call <SID>AddOption("wildignorecase", gettext("ignore case when completing file names")) |
2662 | 1155 call <SID>BinOptionG("wic", &wic) |
7 | 1156 if has("wildmenu") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1157 call <SID>AddOption("wildmenu", gettext("command-line completion shows a list of matches")) |
7 | 1158 call <SID>BinOptionG("wmnu", &wmnu) |
1159 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1160 call <SID>AddOption("cedit", gettext("key used to open the command-line window")) |
15729 | 1161 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
|
1162 call <SID>AddOption("cmdwinheight", gettext("height of the command-line window")) |
15729 | 1163 call <SID>OptionG("cwh", &cwh) |
7 | 1164 |
1165 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1166 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
|
1167 call <SID>AddOption("shell", gettext("name of the shell program used for external commands")) |
7 | 1168 call <SID>OptionG("sh", &sh) |
1169 if has("amiga") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1170 call <SID>AddOption("shelltype", gettext("when to use the shell or directly execute a command")) |
7 | 1171 call append("$", " \tset st=" . &st) |
1172 endif | |
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("shellquote", gettext("character(s) to enclose a shell command in")) |
7 | 1174 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
|
1175 call <SID>AddOption("shellxquote", gettext("like 'shellquote' but include the redirection")) |
7 | 1176 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
|
1177 call <SID>AddOption("shellxescape", gettext("characters to escape when 'shellxquote' is (")) |
3371 | 1178 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
|
1179 call <SID>AddOption("shellcmdflag", gettext("argument for 'shell' to execute a command")) |
7 | 1180 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
|
1181 call <SID>AddOption("shellredir", gettext("used to redirect command output to a file")) |
7 | 1182 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
|
1183 call <SID>AddOption("shelltemp", gettext("use a temp file for shell commands instead of using a pipe")) |
393 | 1184 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
|
1185 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
|
1186 call append("$", "\t" .. s:global_or_local) |
7 | 1187 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
|
1188 call <SID>AddOption("formatprg", gettext("program used to format lines with \"gq\" command")) |
7 | 1189 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
|
1190 call <SID>AddOption("keywordprg", gettext("program used for the \"K\" command")) |
7 | 1191 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
|
1192 call <SID>AddOption("warn", gettext("warn when using a shell command and a buffer has changes")) |
7 | 1193 call <SID>BinOptionG("warn", &warn) |
1194 | |
1195 | |
1196 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1197 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
|
1198 call <SID>AddOption("errorfile", gettext("name of the file that contains error messages")) |
7 | 1199 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
|
1200 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
|
1201 call append("$", "\t" .. s:global_or_local) |
7 | 1202 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
|
1203 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
|
1204 call append("$", "\t" .. s:global_or_local) |
7 | 1205 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
|
1206 call <SID>AddOption("shellpipe", gettext("string used to put the output of \":make\" in the error file")) |
7 | 1207 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
|
1208 call <SID>AddOption("makeef", gettext("name of the errorfile for the 'makeprg' command")) |
7 | 1209 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
|
1210 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
|
1211 call append("$", "\t" .. s:global_or_local) |
7 | 1212 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
|
1213 call <SID>AddOption("grepformat", gettext("list of formats for output of 'grepprg'")) |
7 | 1214 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
|
1215 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
|
1216 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
|
1217 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
|
1218 call <SID>AddOption("quickfixtextfunc", gettext("function to display text in the quickfix window")) |
20753 | 1219 call <SID>OptionG("qftf", &qftf) |
7 | 1220 endif |
1221 | |
1222 | |
22723 | 1223 if has("win32") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1224 call <SID>Header(gettext("system specific")) |
22723 | 1225 call <SID>AddOption("shellslash", gettext("use forward slashes in file names; for Unix-like shells")) |
1226 call <SID>BinOptionG("ssl", &ssl) | |
1227 call <SID>AddOption("completeslash", gettext("specifies slash/backslash used for completion")) | |
1228 call <SID>OptionG("csl", &csl) | |
7 | 1229 endif |
1230 | |
1231 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1232 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
|
1233 call <SID>AddOption("isfname", gettext("specifies the characters in a file name")) |
7 | 1234 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
|
1235 call <SID>AddOption("isident", gettext("specifies the characters in an identifier")) |
7 | 1236 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
|
1237 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
|
1238 call append("$", "\t" .. s:local_to_buffer) |
7 | 1239 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
|
1240 call <SID>AddOption("isprint", gettext("specifies printable characters")) |
7 | 1241 call <SID>OptionG("isp", &isp) |
12 | 1242 if has("textobjects") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1243 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
|
1244 call append("$", "\t" .. s:local_to_buffer) |
12 | 1245 call <SID>OptionL("qe") |
1246 endif | |
7 | 1247 if has("rightleft") |
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("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
|
1249 call append("$", "\t" .. s:local_to_window) |
7 | 1250 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
|
1251 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
|
1252 call append("$", "\t" .. s:local_to_window) |
7 | 1253 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
|
1254 call <SID>AddOption("revins", gettext("insert characters backwards")) |
7 | 1255 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
|
1256 call <SID>AddOption("allowrevins", gettext("allow CTRL-_ in Insert and Command-line mode to toggle 'revins'")) |
7 | 1257 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
|
1258 call <SID>AddOption("aleph", gettext("the ASCII code for the first letter of the Hebrew alphabet")) |
7 | 1259 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
|
1260 call <SID>AddOption("hkmap", gettext("use Hebrew keyboard mapping")) |
7 | 1261 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
|
1262 call <SID>AddOption("hkmapp", gettext("use phonetic Hebrew keyboard mapping")) |
7 | 1263 call <SID>BinOptionG("hkp", &hkp) |
1264 endif | |
1265 if has("arabic") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1266 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
|
1267 call append("$", "\t" .. s:local_to_window) |
7 | 1268 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
|
1269 call <SID>AddOption("arabicshape", gettext("perform shaping of Arabic characters")) |
7 | 1270 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
|
1271 call <SID>AddOption("termbidi", gettext("terminal will perform bidi handling")) |
7 | 1272 call <SID>BinOptionG("tbidi", &tbidi) |
1273 endif | |
1274 if has("keymap") | |
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("keymap", gettext("name of a keyboard mapping")) |
7 | 1276 call <SID>OptionL("kmp") |
1277 endif | |
1278 if has("langmap") | |
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("langmap", gettext("list of characters that are translated in Normal mode")) |
7 | 1280 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
|
1281 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
|
1282 call <SID>BinOptionG("lrm", &lrm) |
7 | 1283 endif |
1284 if has("xim") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1285 call <SID>AddOption("imdisable", gettext("when set never use IM; overrules following IM options")) |
7 | 1286 call <SID>BinOptionG("imd", &imd) |
1287 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1288 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
|
1289 call append("$", "\t" .. s:local_to_window) |
7 | 1290 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
|
1291 call <SID>AddOption("imstyle", gettext("input method style, 0: on-the-spot, 1: over-the-spot")) |
12499 | 1292 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
|
1293 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
|
1294 call append("$", "\t" .. s:local_to_window) |
7 | 1295 call <SID>OptionL("ims") |
1296 if has("xim") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1297 call <SID>AddOption("imcmdline", gettext("when set always use IM when starting to edit a command line")) |
7 | 1298 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
|
1299 call <SID>AddOption("imstatusfunc", gettext("function to obtain IME status")) |
5055 | 1300 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
|
1301 call <SID>AddOption("imactivatefunc", gettext("function to enable/disable IME")) |
5055 | 1302 call <SID>OptionG("imaf", &imaf) |
7 | 1303 endif |
1304 | |
1305 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1306 call <SID>Header(gettext("multi-byte characters")) |
22824 | 1307 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
|
1308 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
|
1309 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
|
1310 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
|
1311 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
|
1312 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
|
1313 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
|
1314 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
|
1315 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
|
1316 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
|
1317 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
|
1318 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
|
1319 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
|
1320 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
|
1321 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
|
1322 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
|
1323 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
|
1324 call <SID>OptionG("imak", &imak) |
7 | 1325 endif |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1326 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
|
1327 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
|
1328 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
|
1329 call <SID>BinOptionG("emo", &emo) |
7 | 1330 |
1331 | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1332 call <SID>Header(gettext("various")) |
22723 | 1333 call <SID>AddOption("virtualedit", gettext("when to use virtual editing: \"block\", \"insert\", \"all\"\nand/or \"onemore\"")) |
15729 | 1334 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
|
1335 call <SID>AddOption("eventignore", gettext("list of autocommand events which are to be ignored")) |
15729 | 1336 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
|
1337 call <SID>AddOption("loadplugins", gettext("load plugin scripts when starting up")) |
7 | 1338 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
|
1339 call <SID>AddOption("exrc", gettext("enable reading .vimrc/.exrc/.gvimrc in the current directory")) |
7 | 1340 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
|
1341 call <SID>AddOption("secure", gettext("safer working with script files in the current directory")) |
7 | 1342 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
|
1343 call <SID>AddOption("gdefault", gettext("use the 'g' flag for \":substitute\"")) |
7 | 1344 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
|
1345 call <SID>AddOption("edcompatible", gettext("'g' and 'c' flags of \":substitute\" toggle")) |
7 | 1346 call <SID>BinOptionG("ed", &ed) |
1120 | 1347 if exists("+opendevice") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1348 call <SID>AddOption("opendevice", gettext("allow reading/writing devices")) |
1120 | 1349 call <SID>BinOptionG("odev", &odev) |
1350 endif | |
1351 if exists("+maxfuncdepth") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1352 call <SID>AddOption("maxfuncdepth", gettext("maximum depth of function calls")) |
7 | 1353 call append("$", " \tset mfd=" . &mfd) |
1120 | 1354 endif |
7 | 1355 if has("mksession") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1356 call <SID>AddOption("sessionoptions", gettext("list of words that specifies what to put in a session file")) |
7 | 1357 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
|
1358 call <SID>AddOption("viewoptions", gettext("list of words that specifies what to save for :mkview")) |
7 | 1359 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
|
1360 call <SID>AddOption("viewdir", gettext("directory where to store files with :mkview")) |
7 | 1361 call <SID>OptionG("vdir", &vdir) |
1362 endif | |
1363 if has("viminfo") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1364 call <SID>AddOption("viminfo", gettext("list that specifies what to write in the viminfo file")) |
7 | 1365 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
|
1366 call <SID>AddOption("viminfofile", gettext("file name used for the viminfo file")) |
11914 | 1367 call <SID>OptionG("vif", &vif) |
7 | 1368 endif |
1369 if has("quickfix") | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1370 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
|
1371 call append("$", "\t" .. s:local_to_buffer) |
7 | 1372 call <SID>OptionL("bh") |
22723 | 1373 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
|
1374 call append("$", "\t" .. s:local_to_buffer) |
7 | 1375 call <SID>OptionL("bt") |
1376 endif | |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1377 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
|
1378 call append("$", "\t" .. s:local_to_buffer) |
7 | 1379 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
|
1380 call <SID>AddOption("debug", gettext("set to \"msg\" to see all error messages")) |
7 | 1381 call append("$", " \tset debug=" . &debug) |
9852
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1382 if has("signs") |
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("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
|
1384 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
|
1385 call <SID>OptionL("scl") |
4eea48b76d03
commit https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
1386 endif |
14 | 1387 if has("mzscheme") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1388 call <SID>AddOption("mzquantum", gettext("interval in milliseconds between polls for MzScheme threads")) |
14 | 1389 call append("$", " \tset mzq=" . &mzq) |
1390 endif | |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1391 if exists("&luadll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1392 call <SID>AddOption("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
|
1393 call <SID>OptionG("luadll", &luadll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1394 endif |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1395 if exists("&perldll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1396 call <SID>AddOption("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
|
1397 call <SID>OptionG("perldll", &perldll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1398 endif |
10722
7598ce51bf2a
patch 8.0.0251: not easy to select Python 2 or 3
Christian Brabandt <cb@256bit.org>
parents:
9975
diff
changeset
|
1399 if has('pythonx') |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1400 call <SID>AddOption("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
|
1401 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
|
1402 endif |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1403 if exists("&pythondll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1404 call <SID>AddOption("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
|
1405 call <SID>OptionG("pythondll", &pythondll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1406 endif |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1407 if exists("&pythonhome") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1408 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
|
1409 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
|
1410 endif |
7220
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1411 if exists("&pythonthreedll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1412 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
|
1413 call <SID>OptionG("pythonthreedll", &pythonthreedll) |
1931b890e7d7
commit https://github.com/vim/vim/commit/d4ece23e2e602d820ab7367c383dc0d72dd87029
Christian Brabandt <cb@256bit.org>
parents:
6956
diff
changeset
|
1414 endif |
13154
53cc7ea77c54
patch 8.0.1451: difficult to set the python home directories properly
Christian Brabandt <cb@256bit.org>
parents:
12909
diff
changeset
|
1415 if exists("&pythonthreehome") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1416 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
|
1417 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
|
1418 endif |
7222
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1419 if exists("&rubydll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1420 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
|
1421 call <SID>OptionG("rubydll", &rubydll) |
4e86d5700260
commit https://github.com/vim/vim/commit/a93f975e8b39d7cfc8145dbe181cc4e5e4ec0bdf
Christian Brabandt <cb@256bit.org>
parents:
7220
diff
changeset
|
1422 endif |
7538
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1423 if exists("&tcldll") |
22228
222f8e19ed01
patch 8.2.1663: options window entries cannot be translated
Bram Moolenaar <Bram@vim.org>
parents:
22206
diff
changeset
|
1424 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
|
1425 call <SID>OptionG("tcldll", &tcldll) |
c9fc24b76293
commit https://github.com/vim/vim/commit/8a5115cf18751022387af2085f374d38c60dde83
Christian Brabandt <cb@256bit.org>
parents:
7511
diff
changeset
|
1426 endif |
12756
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1427 if exists("&mzschemedll") |
22335
8e535ffc8a38
patch 8.2.1716: options window has duplicate translations
Bram Moolenaar <Bram@vim.org>
parents:
22228
diff
changeset
|
1428 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
|
1429 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
|
1430 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
|
1431 call <SID>OptionG("mzschemegcdll", &mzschemegcdll) |
3b26420fc639
Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents:
12499
diff
changeset
|
1432 endif |
7 | 1433 |
1434 set cpo&vim | |
1435 | |
1436 " go to first line | |
1437 1 | |
1438 | |
1439 " reset 'modified', so that ":q" can be used to close the window | |
1440 setlocal nomodified | |
1441 | |
1442 if has("syntax") | |
1443 " Use Vim highlighting, with some additional stuff | |
1444 setlocal ft=vim | |
1445 syn match optwinHeader "^ \=[0-9].*" | |
1446 syn match optwinName "^[a-z]*\t" nextgroup=optwinComment | |
1447 syn match optwinComment ".*" contained | |
1448 syn match optwinComment "^\t.*" | |
1449 if !exists("did_optwin_syntax_inits") | |
1450 let did_optwin_syntax_inits = 1 | |
1451 hi link optwinHeader Title | |
1452 hi link optwinName Identifier | |
1453 hi link optwinComment Comment | |
1454 endif | |
1455 endif | |
1456 | |
1457 " Install autocommands to enable mappings in option-window | |
1458 noremap <silent> <buffer> <CR> <C-\><C-N>:call <SID>CR()<CR> | |
1459 inoremap <silent> <buffer> <CR> <Esc>:call <SID>CR()<CR> | |
1460 noremap <silent> <buffer> <Space> :call <SID>Space()<CR> | |
1461 | |
1462 " Make the buffer be deleted when the window is closed. | |
1463 setlocal buftype=nofile bufhidden=delete noswapfile | |
1464 | |
1465 augroup optwin | |
1466 au! BufUnload,BufHidden option-window nested | |
1467 \ call <SID>unload() | delfun <SID>unload | |
1468 augroup END | |
1469 | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
1470 func <SID>unload() |
7 | 1471 delfun <SID>CR |
1472 delfun <SID>Space | |
1473 delfun <SID>Find | |
1474 delfun <SID>Update | |
1475 delfun <SID>OptionL | |
1476 delfun <SID>OptionG | |
1477 delfun <SID>BinOptionL | |
1478 delfun <SID>BinOptionG | |
1479 delfun <SID>Header | |
1480 au! optwin | |
22206
5251a6592aaa
patch 8.2.1652: cannot translate lines in the options window
Bram Moolenaar <Bram@vim.org>
parents:
22186
diff
changeset
|
1481 endfunc |
7 | 1482 |
1483 " Restore the previous value of 'title' and 'icon'. | |
1484 let &title = s:old_title | |
1485 let &icon = s:old_icon | |
1486 let &ru = s:old_ru | |
1487 let &sc = s:old_sc | |
1488 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
|
1489 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
|
1490 unlet s:old_title s:old_icon s:old_ru s:old_sc s:cpo_save s:idx s:lnum s:old_ul |
2908 | 1491 |
1492 " vim: ts=8 sw=2 sts=2 |