Mercurial > vim
comparison runtime/doc/sign.txt @ 16930:1689b52cf297 v8.1.1466
patch 8.1.1466: not updating priority on existing sign
commit https://github.com/vim/vim/commit/58a7f87c8653b4cb5b0794b6b88e2ec140d3d2c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 4 22:48:15 2019 +0200
patch 8.1.1466: not updating priority on existing sign
Problem: Not updating priority on existing sign.
Solution: Set the sign priority. Add a test. (Yegappan Lakshmanan)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jun 2019 23:00:06 +0200 |
parents | 0e473e9e70c2 |
children | d23afa4d8b63 |
comparison
equal
deleted
inserted
replaced
16929:485931978c65 | 16930:1689b52cf297 |
---|---|
180 | 180 |
181 By default, the sign is placed in the global sign group. | 181 By default, the sign is placed in the global sign group. |
182 | 182 |
183 By default, the sign is assigned a default priority of 10. To | 183 By default, the sign is assigned a default priority of 10. To |
184 assign a different priority value, use "priority={prio}" to | 184 assign a different priority value, use "priority={prio}" to |
185 specify a value. The priority is used to determine the | 185 specify a value. The priority is used to determine the sign |
186 highlight group used when multiple signs are placed on the | 186 that is displayed when multiple signs are placed on the same |
187 same line. | 187 line. |
188 | 188 |
189 Examples: > | 189 Examples: > |
190 :sign place 5 line=3 name=sign1 file=a.py | 190 :sign place 5 line=3 name=sign1 file=a.py |
191 :sign place 6 group=g2 line=2 name=sign2 file=x.py | 191 :sign place 6 group=g2 line=2 name=sign2 file=x.py |
192 :sign place 9 group=g2 priority=50 line=5 | 192 :sign place 9 group=g2 priority=50 line=5 |
202 sign {name}. See remark above about {fname} |:sign-fname|. | 202 sign {name}. See remark above about {fname} |:sign-fname|. |
203 This can be used to change the displayed sign without moving | 203 This can be used to change the displayed sign without moving |
204 it (e.g., when the debugger has stopped at a breakpoint). | 204 it (e.g., when the debugger has stopped at a breakpoint). |
205 | 205 |
206 The optional "group={group}" attribute can be used before | 206 The optional "group={group}" attribute can be used before |
207 "file=" to select a sign in a particular group. | 207 "file=" to select a sign in a particular group. The optional |
208 "priority={prio}" attribute can be used to change the priority | |
209 of an existing sign. | |
208 | 210 |
209 :sign place {id} name={name} [buffer={nr}] | 211 :sign place {id} name={name} [buffer={nr}] |
210 Same, but use buffer {nr}. If the buffer argument is not | 212 Same, but use buffer {nr}. If the buffer argument is not |
211 given, use the current buffer. | 213 given, use the current buffer. |
212 | 214 |