Mercurial > vim
comparison runtime/optwin.vim @ 2385:295d53417fc3 vim73
Fix 'autochdir' not showing up in :options window. (Dominique Pelle)
Adjust :options window for changes in conceal options.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 24 Jul 2010 15:48:31 +0200 |
parents | 9272cc83214f |
children | fb8cce4174f0 |
comparison
equal
deleted
inserted
replaced
2384:aeea25941392 | 2385:295d53417fc3 |
---|---|
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: 2008 May 12 | 4 " Last Change: 2010 Jul 24 |
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 |
255 call append("$", "path\tlist of directory names used for file searching") | 255 call append("$", "path\tlist of directory names used for file searching") |
256 call append("$", "\t(global or local to buffer)") | 256 call append("$", "\t(global or local to buffer)") |
257 call <SID>OptionG("pa", &pa) | 257 call <SID>OptionG("pa", &pa) |
258 call append("$", "cdpath\tlist of directory names used for :cd") | 258 call append("$", "cdpath\tlist of directory names used for :cd") |
259 call <SID>OptionG("cd", &cd) | 259 call <SID>OptionG("cd", &cd) |
260 if has("netbeans_intg") || has("sun_workshop") | 260 if exists("+autochdir") |
261 call append("$", "autochdir\tchange to directory of file in buffer") | 261 call append("$", "autochdir\tchange to directory of file in buffer") |
262 call <SID>BinOptionG("acd", &acd) | 262 call <SID>BinOptionG("acd", &acd) |
263 endif | 263 endif |
264 call append("$", "wrapscan\tsearch commands wrap around the end of the buffer") | 264 call append("$", "wrapscan\tsearch commands wrap around the end of the buffer") |
265 call <SID>BinOptionG("ws", &ws) | 265 call <SID>BinOptionG("ws", &ws) |
372 call append("$", "numberwidth\tnumber of columns to use for the line number") | 372 call append("$", "numberwidth\tnumber of columns to use for the line number") |
373 call append("$", "\t(local to window)") | 373 call append("$", "\t(local to window)") |
374 call <SID>OptionL("nuw") | 374 call <SID>OptionL("nuw") |
375 endif | 375 endif |
376 if has("conceal") | 376 if has("conceal") |
377 call append("$", "conceallevel\tcontrols whether concealable elements are hidden") | 377 call append("$", "conceallevel\tcontrols whether concealable text is hidden") |
378 call append("$", "\t(local to window)") | 378 call append("$", "\t(local to window)") |
379 call <SID>OptionL("conc") | 379 call <SID>OptionL("cole") |
380 call append("$", "concealcursor\tcontrols whether concealable text is hidden in the cursor line") | |
381 call append("$", "\t(local to window)") | |
382 call <SID>OptionL("cocu") | |
380 endif | 383 endif |
381 | 384 |
382 | 385 |
383 call <SID>Header("syntax, highlighting and spelling") | 386 call <SID>Header("syntax, highlighting and spelling") |
384 call append("$", "background\t\"dark\" or \"light\"; the background color brightness") | 387 call append("$", "background\t\"dark\" or \"light\"; the background color brightness") |