summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-27 20:55:21 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-27 20:55:21 +0000
commit2e2a2815e5c8274bf2e2d9b383707f1c2eee08bb (patch)
treeb049ea434838eb8545fa0a0c77d4283ee355a06b /runtime
parent3991dab8e0a3815bd5349c1ffa88476819971c48 (diff)
updated for version 7.0c01
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/usr_44.txt33
1 files changed, 14 insertions, 19 deletions
diff --git a/runtime/doc/usr_44.txt b/runtime/doc/usr_44.txt
index a11fd42756..3837013554 100644
--- a/runtime/doc/usr_44.txt
+++ b/runtime/doc/usr_44.txt
@@ -1,4 +1,4 @@
-*usr_44.txt* For Vim version 7.0c. Last change: 2005 Apr 01
+*usr_44.txt* For Vim version 7.0c. Last change: 2006 Mar 27
VIM USER MANUAL - by Bram Moolenaar
@@ -689,25 +689,20 @@ Do not include anything that is a user preference. Don't set 'tabstop',
Do not include mappings or abbreviations. Only include setting 'iskeyword' if
it is really necessary for recognizing keywords.
-Avoid using specific colors. Link to the standard highlight groups whenever
-possible. Don't forget that some people use a different background color, or
-have only eight colors available.
-For backwards compatibility with Vim 5.8 this construction is used: >
-
- if version >= 508 || !exists("did_c_syn_inits")
- if version < 508
- let did_c_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink nameString String
- HiLink nameNumber Number
- ... etc ...
+To allow users select their own preferred colors, make a different group name
+for every kind of highlighted item. Then link each of them to one of the
+standard highlight groups. That will make it work with every color scheme.
+If you select specific colors it will look bad with some color schemes. And
+don't forget that some people use a different background color, or have only
+eight colors available.
- delcommand HiLink
- endif
+For the linking use "hi def link", so that the user can select different
+highlighting before your syntax file is loaded. Example: >
+
+ hi def link nameString String
+ hi def link nameNumber Number
+ hi def link nameCommand Statement
+ ... etc ...
Add the "display" argument to items that are not used when syncing, to speed
up scrolling backwards and CTRL-L.