|
1 |
| -*sign.txt* For Vim version 9.1. Last change: 2024 Jun 08 |
| 1 | +*sign.txt* For Vim version 9.1. Last change: 2024 Jul 07 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Gordon Prieur
|
@@ -80,8 +80,9 @@ used by popup windows where 'cursorline' is set.
|
80 | 80 | *sign-priority*
|
81 | 81 | Each placed sign is assigned a priority value. When multiple signs are placed
|
82 | 82 | on the same line, the attributes of the sign with the highest priority is used
|
83 |
| -independently of the sign group. The default priority for a sign is 10. The |
84 |
| -priority is assigned at the time of placing a sign. |
| 83 | +independently of the sign group. The default priority for a sign is 10, this |
| 84 | +value can be changed for different signs by specifying a different value at |
| 85 | +definition time. The priority is assigned at the time of placing a sign. |
85 | 86 |
|
86 | 87 | When two signs with the same priority are present, and one has an icon or text
|
87 | 88 | in the signcolumn while the other has line highlighting, then both are
|
@@ -135,6 +136,8 @@ See |sign_define()| for the equivalent Vim script function.
|
135 | 136 | Motif pixmap (.xpm)
|
136 | 137 | Win32 .bmp, .ico, .cur
|
137 | 138 | pixmap (.xpm) |+xpm_w32|
|
| 139 | + priority={prio} |
| 140 | + Default priority for the sign, see |sign-priority|. |
138 | 141 |
|
139 | 142 | linehl={group}
|
140 | 143 | Highlighting group used for the whole line the sign is placed
|
@@ -209,11 +212,11 @@ See |sign_place()| for the equivalent Vim script function.
|
209 | 212 |
|
210 | 213 | By default, the sign is placed in the global sign group.
|
211 | 214 |
|
212 |
| - By default, the sign is assigned a default priority of 10. To |
213 |
| - assign a different priority value, use "priority={prio}" to |
214 |
| - specify a value. The priority is used to determine the sign |
215 |
| - that is displayed when multiple signs are placed on the same |
216 |
| - line. |
| 215 | + By default, the sign is assigned a default priority of 10, |
| 216 | + unless specified otherwise by the sign definition. To assign a |
| 217 | + different priority value, use "priority={prio}" to specify a |
| 218 | + value. The priority is used to determine the sign that is |
| 219 | + displayed when multiple signs are placed on the same line. |
217 | 220 |
|
218 | 221 | Examples: >
|
219 | 222 | :sign place 5 line=3 name=sign1 file=a.py
|
@@ -401,6 +404,7 @@ sign_define({list})
|
401 | 404 | icon full path to the bitmap file for the sign.
|
402 | 405 | linehl highlight group used for the whole line the
|
403 | 406 | sign is placed in.
|
| 407 | + priority default priority value of the sign |
404 | 408 | numhl highlight group used for the line number where
|
405 | 409 | the sign is placed.
|
406 | 410 | text text that is displayed when there is no icon
|
@@ -453,6 +457,7 @@ sign_getdefined([{name}]) *sign_getdefined()*
|
453 | 457 | linehl highlight group used for the whole line the
|
454 | 458 | sign is placed in; not present if not set
|
455 | 459 | name name of the sign
|
| 460 | + priority default priority value of the sign |
456 | 461 | numhl highlight group used for the line number where
|
457 | 462 | the sign is placed; not present if not set
|
458 | 463 | text text that is displayed when there is no icon
|
@@ -646,7 +651,8 @@ sign_placelist({list}) *sign_placelist()*
|
646 | 651 | priority Priority of the sign. When multiple signs are
|
647 | 652 | placed on a line, the sign with the highest
|
648 | 653 | priority is used. If not specified, the
|
649 |
| - default value of 10 is used. See |
| 654 | + default value of 10 is used, unless specified |
| 655 | + otherwise by the sign definition. See |
650 | 656 | |sign-priority| for more information.
|
651 | 657 |
|
652 | 658 | If {id} refers to an existing sign, then the existing sign is
|
|
0 commit comments