comparison runtime/doc/syntax.txt @ 2254:4620acaf4814 vim73

One more fix for conceal patch.
author Bram Moolenaar <bram@vim.org>
date Sun, 06 Jun 2010 17:41:24 +0200
parents 1bac28a53fae
children fb627e94e6c6
comparison
equal deleted inserted replaced
2253:12ebd6f6dfce 2254:4620acaf4814
4519 italic etc regions) in another. The 'scrollbind' option is useful here. 4519 italic etc regions) in another. The 'scrollbind' option is useful here.
4520 4520
4521 To set the current window to have the syntax "foo", separately from all other 4521 To set the current window to have the syntax "foo", separately from all other
4522 windows on the buffer: > 4522 windows on the buffer: >
4523 :ownsyntax foo 4523 :ownsyntax foo
4524 < *w:current_syntax*
4525 This will set the "w:current_syntax" variable to "foo". The value of
4526 "b:current_syntax" does not change. This is implemented by saving and
4527 restoring "b:current_syntax", since the syntax files do set
4528 "b:current_syntax". The value set by the syntax file is assigned to
4529 "w:current_syntax".
4524 4530
4525 Once a window has its own syntax, syntax commands executed from other windows 4531 Once a window has its own syntax, syntax commands executed from other windows
4526 on the same buffer (including :syntax clear) have no effect. Conversely, 4532 on the same buffer (including :syntax clear) have no effect. Conversely,
4527 syntax commands executed from that window do not effect other windows on the 4533 syntax commands executed from that window do not effect other windows on the
4528 same buffer. 4534 same buffer.
4529 4535
4530 A window with its own syntax reverts to normal behaviour when another buffer 4536 A window with its own syntax reverts to normal behavior when another buffer
4531 is loaded into that window. 4537 is loaded into that window or the file is reloaded.
4538 When splitting the window, the new window will use the original syntax.
4532 4539
4533 ============================================================================== 4540 ==============================================================================
4534 16. Color xterms *xterm-color* *color-xterm* 4541 16. Color xterms *xterm-color* *color-xterm*
4535 4542
4536 Most color xterms have only eight colors. If you don't get colors with the 4543 Most color xterms have only eight colors. If you don't get colors with the