Mercurial > vim
comparison runtime/optwin.vim @ 1595:5027d3220e2a v7.1.308
updated for version 7.1-308
author | vimboss |
---|---|
date | Wed, 04 Jun 2008 12:29:14 +0000 |
parents | e6db096b07a1 |
children | c6f1aa1e9f32 |
comparison
equal
deleted
inserted
replaced
1594:23aeaff96141 | 1595:5027d3220e2a |
---|---|
1 " These commands create the option window. | 1 " These commands create the option window. |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2006 Oct 10 | 4 " Last Change: 2008 May 12 |
5 | 5 |
6 " If there already is an option window, jump to that one. | 6 " If there already is an option window, jump to that one. |
7 if bufwinnr("option-window") > 0 | 7 if bufwinnr("option-window") > 0 |
8 let s:thiswin = winnr() | 8 let s:thiswin = winnr() |
9 while 1 | 9 while 1 |
145 endif | 145 endif |
146 endwhile | 146 endwhile |
147 | 147 |
148 " Open the window | 148 " Open the window |
149 new option-window | 149 new option-window |
150 setlocal ts=15 tw=0 | 150 setlocal ts=15 tw=0 noro |
151 | 151 |
152 " Insert help and a "set" command for each option. | 152 " Insert help and a "set" command for each option. |
153 call append(0, '" Each "set" line shows the current value of an option (on the left).') | 153 call append(0, '" Each "set" line shows the current value of an option (on the left).') |
154 call append(1, '" Hit <CR> on a "set" line to execute it.') | 154 call append(1, '" Hit <CR> on a "set" line to execute it.') |
155 call append(2, '" A boolean option will be toggled.') | 155 call append(2, '" A boolean option will be toggled.') |
348 call append("$", " \tset co=" . &co) | 348 call append("$", " \tset co=" . &co) |
349 call append("$", "lines\tnumber of lines in the display") | 349 call append("$", "lines\tnumber of lines in the display") |
350 call append("$", " \tset lines=" . &lines) | 350 call append("$", " \tset lines=" . &lines) |
351 call append("$", "lazyredraw\tdon't redraw while executing macros") | 351 call append("$", "lazyredraw\tdon't redraw while executing macros") |
352 call <SID>BinOptionG("lz", &lz) | 352 call <SID>BinOptionG("lz", &lz) |
353 if has("reltime") | |
354 call append("$", "redrawtime\ttimeout for 'hlsearch' and :match highlighting in msec") | |
355 call append("$", " \tset rdt=" . &rdt) | |
356 endif | |
353 call append("$", "writedelay\tdelay in msec for each char written to the display") | 357 call append("$", "writedelay\tdelay in msec for each char written to the display") |
354 call append("$", "\t(for debugging)") | 358 call append("$", "\t(for debugging)") |
355 call append("$", " \tset wd=" . &wd) | 359 call append("$", " \tset wd=" . &wd) |
356 call append("$", "list\tshow <Tab> as ^I and end-of-line as $") | 360 call append("$", "list\tshow <Tab> as ^I and end-of-line as $") |
357 call append("$", "\t(local to window)") | 361 call append("$", "\t(local to window)") |