Bram Moolenaar | d09091d | 2019-01-17 16:07:22 +0100 | [diff] [blame^] | 1 | *sign.txt* For Vim version 8.1. Last change: 2019 Jan 17 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | |
| 4 | VIM REFERENCE MANUAL by Gordon Prieur |
| 5 | and Bram Moolenaar |
| 6 | |
| 7 | |
| 8 | Sign Support Features *sign-support* |
| 9 | |
| 10 | 1. Introduction |sign-intro| |
| 11 | 2. Commands |sign-commands| |
| 12 | |
| 13 | {Vi does not have any of these features} |
| 14 | {only available when compiled with the |+signs| feature} |
| 15 | |
| 16 | ============================================================================== |
| 17 | 1. Introduction *sign-intro* *signs* |
| 18 | |
| 19 | When a debugger or other IDE tool is driving an editor it needs to be able |
| 20 | to give specific highlights which quickly tell the user useful information |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 21 | about the file. One example of this would be a debugger which had an icon |
| 22 | in the left-hand column denoting a breakpoint. Another example might be an |
| 23 | arrow representing the Program Counter (PC). The sign features allow both |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | placement of a sign, or icon, in the left-hand side of the window and |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 25 | definition of a highlight which will be applied to that line. Displaying the |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 26 | sign as an image is most likely only feasible in gvim (although Sun |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 27 | Microsystem's dtterm does support this it's the only terminal emulator I know |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 28 | of which does). A text sign and the highlight should be feasible in any color |
| 29 | terminal emulator. |
| 30 | |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 31 | Signs and highlights are not useful just for debuggers. Sun's Visual |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 32 | WorkShop uses signs and highlights to mark build errors and SourceBrowser |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 33 | hits. Additionally, the debugger supports 8 to 10 different signs and |
Bram Moolenaar | d09091d | 2019-01-17 16:07:22 +0100 | [diff] [blame^] | 34 | highlight colors, see |NetBeans|. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 35 | |
| 36 | There are two steps in using signs: |
| 37 | |
| 38 | 1. Define the sign. This specifies the image, text and highlighting. For |
| 39 | example, you can define a "break" sign with an image of a stop roadsign and |
| 40 | text "!!". |
| 41 | |
| 42 | 2. Place the sign. This specifies the file and line number where the sign is |
| 43 | displayed. A defined sign can be placed several times in different lines |
| 44 | and files. |
| 45 | |
Bram Moolenaar | d09091d | 2019-01-17 16:07:22 +0100 | [diff] [blame^] | 46 | *sign-column* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 47 | When signs are defined for a file, Vim will automatically add a column of two |
| 48 | characters to display them in. When the last sign is unplaced the column |
Bram Moolenaar | 0952131 | 2016-08-12 22:54:35 +0200 | [diff] [blame] | 49 | disappears again. This behavior can be changed with the 'signcolumn' option. |
| 50 | |
| 51 | The color of the column is set with the SignColumn group |hl-SignColumn|. |
| 52 | Example to set the color: > |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 53 | |
| 54 | :highlight SignColumn guibg=darkgrey |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 55 | < |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 56 | *sign-identifier* |
| 57 | Each placed sign is identified by a number called the sign identifier. This |
| 58 | identifier is used to jump to the sign or to remove the sign. The identifier |
Bram Moolenaar | d09091d | 2019-01-17 16:07:22 +0100 | [diff] [blame^] | 59 | is assigned when placing the sign using the |:sign-place| command or the |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 60 | |sign_place()| function. Each sign identifier should be a unique number. If |
| 61 | multiple placed signs use the same identifier, then jumping to or removing a |
| 62 | sign becomes unpredictable. To avoid overlapping identifiers, sign groups can |
| 63 | be used. The |sign_place()| function can be called with a zero sign identifier |
| 64 | to allocate the next available identifier. |
| 65 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 66 | *sign-group* |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 67 | Each placed sign can be assigned to either the global group or a named group. |
| 68 | When placing a sign, if a group name is not supplied, or an empty string is |
| 69 | used, then the sign is placed in the global group. Otherwise the sign is |
| 70 | placed in the named group. The sign identifier is unique within a group. The |
| 71 | sign group allows Vim plugins to use unique signs without interfering with |
| 72 | other plugins using signs. |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 73 | |
| 74 | *sign-priority* |
| 75 | Each placed sign is assigned a priority value. When multiple signs are placed |
| 76 | on the same line, the attributes of the sign with the highest priority is used |
| 77 | independent of the sign group. The default priority for a sign is 10. The |
| 78 | priority is assigned at the time of placing a sign. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | |
Bram Moolenaar | d09091d | 2019-01-17 16:07:22 +0100 | [diff] [blame^] | 80 | When the line on which the sign is placed is deleted, the sign is moved to the |
| 81 | next line (or the last line of the buffer, if there is no next line). When |
| 82 | the delete is undone the sign does not move back. |
| 83 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 84 | ============================================================================== |
| 85 | 2. Commands *sign-commands* *:sig* *:sign* |
| 86 | |
Bram Moolenaar | 00a927d | 2010-05-14 23:24:24 +0200 | [diff] [blame] | 87 | Here is an example that places a sign "piet", displayed with the text ">>", in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 88 | line 23 of the current file: > |
| 89 | :sign define piet text=>> texthl=Search |
| 90 | :exe ":sign place 2 line=23 name=piet file=" . expand("%:p") |
| 91 | |
| 92 | And here is the command to delete it again: > |
| 93 | :sign unplace 2 |
| 94 | |
| 95 | Note that the ":sign" command cannot be followed by another command or a |
| 96 | comment. If you do need that, use the |:execute| command. |
| 97 | |
| 98 | |
| 99 | DEFINING A SIGN. *:sign-define* *E255* *E160* *E612* |
| 100 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 101 | See |sign_define()| for the equivalent Vim script function. |
| 102 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 103 | :sign define {name} {argument}... |
| 104 | Define a new sign or set attributes for an existing sign. |
| 105 | The {name} can either be a number (all digits) or a name |
Bram Moolenaar | 4c05fa0 | 2019-01-01 15:32:17 +0100 | [diff] [blame] | 106 | starting with a non-digit. Leading zeros are ignored, thus |
Bram Moolenaar | 483c5d8 | 2010-10-20 18:45:33 +0200 | [diff] [blame] | 107 | "0012", "012" and "12" are considered the same name. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 108 | About 120 different signs can be defined. |
| 109 | |
| 110 | Accepted arguments: |
| 111 | |
Bram Moolenaar | 6ee8d89 | 2012-01-10 14:55:01 +0100 | [diff] [blame] | 112 | icon={bitmap} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 113 | Define the file name where the bitmap can be found. Should be |
| 114 | a full path. The bitmap should fit in the place of two |
| 115 | characters. This is not checked. If the bitmap is too big it |
| 116 | will cause redraw problems. Only GTK 2 can scale the bitmap |
| 117 | to fit the space available. |
| 118 | toolkit supports ~ |
| 119 | GTK 1 pixmap (.xpm) |
| 120 | GTK 2 many |
| 121 | Motif pixmap (.xpm) |
Bram Moolenaar | 6ee8d89 | 2012-01-10 14:55:01 +0100 | [diff] [blame] | 122 | Win32 .bmp, .ico, .cur |
| 123 | pixmap (.xpm) |+xpm_w32| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 124 | |
| 125 | linehl={group} |
| 126 | Highlighting group used for the whole line the sign is placed |
| 127 | in. Most useful is defining a background color. |
| 128 | |
| 129 | text={text} *E239* |
| 130 | Define the text that is displayed when there is no icon or the |
| 131 | GUI is not being used. Only printable characters are allowed |
| 132 | and they must occupy one or two display cells. |
| 133 | |
| 134 | texthl={group} |
| 135 | Highlighting group used for the text item. |
| 136 | |
| 137 | |
| 138 | DELETING A SIGN *:sign-undefine* *E155* |
| 139 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 140 | See |sign_undefine()| for the equivalent Vim script function. |
| 141 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 142 | :sign undefine {name} |
| 143 | Deletes a previously defined sign. If signs with this {name} |
| 144 | are still placed this will cause trouble. |
| 145 | |
| 146 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 147 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 148 | LISTING SIGNS *:sign-list* *E156* |
| 149 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 150 | See |sign_getdefined()| for the equivalent Vim script function. |
| 151 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 152 | :sign list Lists all defined signs and their attributes. |
| 153 | |
| 154 | :sign list {name} |
| 155 | Lists one defined sign and its attributes. |
| 156 | |
| 157 | |
| 158 | PLACING SIGNS *:sign-place* *E158* |
| 159 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 160 | See |sign_place()| for the equivalent Vim script function. |
| 161 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 162 | :sign place {id} line={lnum} name={name} file={fname} |
| 163 | Place sign defined as {name} at line {lnum} in file {fname}. |
| 164 | *:sign-fname* |
| 165 | The file {fname} must already be loaded in a buffer. The |
| 166 | exact file name must be used, wildcards, $ENV and ~ are not |
| 167 | expanded, white space must not be escaped. Trailing white |
| 168 | space is ignored. |
| 169 | |
| 170 | The sign is remembered under {id}, this can be used for |
| 171 | further manipulation. {id} must be a number. |
| 172 | It's up to the user to make sure the {id} is used only once in |
| 173 | each file (if it's used several times unplacing will also have |
| 174 | to be done several times and making changes may not work as |
| 175 | expected). |
| 176 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 177 | The following optional sign attributes can be specified before |
| 178 | "file=": |
| 179 | group={group} Place sign in sign group {group} |
| 180 | priority={prio} Assign priority {prio} to sign |
| 181 | |
| 182 | By default, the sign is placed in the global sign group. |
| 183 | |
| 184 | By default, the sign is assigned a default priority of 10. To |
| 185 | assign a different priority value, use "priority={prio}" to |
| 186 | specify a value. The priority is used to determine the |
| 187 | highlight group used when multiple signs are placed on the |
| 188 | same line. |
| 189 | |
| 190 | Examples: > |
| 191 | :sign place 5 line=3 name=sign1 file=a.py |
| 192 | :sign place 6 group=g2 line=2 name=sign2 file=x.py |
| 193 | :sign place 9 group=g2 priority=50 line=5 |
| 194 | \ name=sign1 file=a.py |
| 195 | < |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 196 | :sign place {id} line={lnum} name={name} [buffer={nr}] |
| 197 | Same, but use buffer {nr}. If the buffer argument is not |
| 198 | given, place the sign in the current buffer. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 199 | |
Bram Moolenaar | e968e36 | 2014-05-13 20:23:24 +0200 | [diff] [blame] | 200 | *E885* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 201 | :sign place {id} name={name} file={fname} |
| 202 | Change the placed sign {id} in file {fname} to use the defined |
| 203 | sign {name}. See remark above about {fname} |:sign-fname|. |
| 204 | This can be used to change the displayed sign without moving |
| 205 | it (e.g., when the debugger has stopped at a breakpoint). |
| 206 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 207 | The optional "group={group}" attribute can be used before |
| 208 | "file=" to select a sign in a particular group. |
| 209 | |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 210 | :sign place {id} name={name} [buffer={nr}] |
| 211 | Same, but use buffer {nr}. If the buffer argument is not |
| 212 | given, use the current buffer. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 213 | |
| 214 | |
| 215 | REMOVING SIGNS *:sign-unplace* *E159* |
| 216 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 217 | See |sign_unplace()| for the equivalent Vim script function. |
| 218 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 219 | :sign unplace {id} file={fname} |
| 220 | Remove the previously placed sign {id} from file {fname}. |
| 221 | See remark above about {fname} |:sign-fname|. |
| 222 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 223 | :sign unplace {id} group={group} file={fname} |
| 224 | Same but remove the sign {id} in sign group {group}. |
| 225 | |
| 226 | :sign unplace {id} group=* file={fname} |
| 227 | Same but remove the sign {id} from all the sign groups. |
| 228 | |
Bram Moolenaar | f65e566 | 2012-07-10 15:18:22 +0200 | [diff] [blame] | 229 | :sign unplace * file={fname} |
| 230 | Remove all placed signs in file {fname}. |
| 231 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 232 | :sign unplace * group={group} file={fname} |
| 233 | Remove all placed signs in group {group} from file {fname}. |
| 234 | |
| 235 | :sign unplace * group=* file={fname} |
| 236 | Remove all placed signs in all the groups from file {fname}. |
| 237 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 238 | :sign unplace {id} buffer={nr} |
Bram Moolenaar | f65e566 | 2012-07-10 15:18:22 +0200 | [diff] [blame] | 239 | Remove the previously placed sign {id} from buffer {nr}. |
| 240 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 241 | :sign unplace {id} group={group} buffer={nr} |
| 242 | Remove the previously placed sign {id} in group {group} from |
| 243 | buffer {nr}. |
| 244 | |
| 245 | :sign unplace {id} group=* buffer={nr} |
| 246 | Remove the previously placed sign {id} in all the groups from |
| 247 | buffer {nr}. |
| 248 | |
Bram Moolenaar | f65e566 | 2012-07-10 15:18:22 +0200 | [diff] [blame] | 249 | :sign unplace * buffer={nr} |
| 250 | Remove all placed signs in buffer {nr}. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 251 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 252 | :sign unplace * group={group} buffer={nr} |
| 253 | Remove all placed signs in group {group} from buffer {nr}. |
| 254 | |
| 255 | :sign unplace * group=* buffer={nr} |
| 256 | Remove all placed signs in all the groups from buffer {nr}. |
| 257 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 258 | :sign unplace {id} |
| 259 | Remove the previously placed sign {id} from all files it |
| 260 | appears in. |
| 261 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 262 | :sign unplace {id} group={group} |
| 263 | Remove the previously placed sign {id} in group {group} from |
| 264 | all files it appears in. |
| 265 | |
| 266 | :sign unplace {id} group=* |
| 267 | Remove the previously placed sign {id} in all the groups from |
| 268 | all the files it appears in. |
| 269 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 270 | :sign unplace * |
Bram Moolenaar | 6b7b719 | 2019-01-11 13:42:41 +0100 | [diff] [blame] | 271 | Remove all placed signs in the global group from all the files. |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 272 | |
| 273 | :sign unplace * group={group} |
Bram Moolenaar | 6b7b719 | 2019-01-11 13:42:41 +0100 | [diff] [blame] | 274 | Remove all placed signs in group {group} from all the files. |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 275 | |
| 276 | :sign unplace * group=* |
Bram Moolenaar | 6b7b719 | 2019-01-11 13:42:41 +0100 | [diff] [blame] | 277 | Remove all placed signs in all the groups from all the files. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 278 | |
| 279 | :sign unplace |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 280 | Remove a placed sign at the cursor position. If multiple signs |
| 281 | are placed in the line, then only one is removed. |
| 282 | |
| 283 | :sign unplace group={group} |
| 284 | Remove a placed sign in group {group} at the cursor |
| 285 | position. |
| 286 | |
| 287 | :sign unplace group=* |
| 288 | Remove a placed sign in any group at the cursor position. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 289 | |
| 290 | |
Bram Moolenaar | 3678208 | 2013-11-28 13:53:34 +0100 | [diff] [blame] | 291 | LISTING PLACED SIGNS *:sign-place-list* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 292 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 293 | See |sign_getplaced()| for the equivalent Vim script function. |
| 294 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 295 | :sign place file={fname} |
| 296 | List signs placed in file {fname}. |
| 297 | See remark above about {fname} |:sign-fname|. |
| 298 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 299 | :sign place group={group} file={fname} |
| 300 | List signs in group {group} placed in file {fname}. |
| 301 | |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 302 | :sign place group=* file={fname} |
| 303 | List signs in all the groups placed in file {fname}. |
| 304 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 305 | :sign place buffer={nr} |
| 306 | List signs placed in buffer {nr}. |
| 307 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 308 | :sign place group={group} buffer={nr} |
| 309 | List signs in group {group} placed in buffer {nr}. |
| 310 | |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 311 | :sign place group=* buffer={nr} |
| 312 | List signs in all the groups placed in buffer {nr}. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 313 | |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 314 | :sign place List placed signs in the global group in all files. |
Bram Moolenaar | c8c8849 | 2018-12-27 23:59:26 +0100 | [diff] [blame] | 315 | |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 316 | :sign place group={group} |
Bram Moolenaar | c8c8849 | 2018-12-27 23:59:26 +0100 | [diff] [blame] | 317 | List placed signs with sign group {group} in all files. |
Bram Moolenaar | 162b714 | 2018-12-21 15:17:36 +0100 | [diff] [blame] | 318 | |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 319 | :sign place group=* |
| 320 | List placed signs in all sign groups in all files. |
| 321 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 322 | |
| 323 | JUMPING TO A SIGN *:sign-jump* *E157* |
| 324 | |
Bram Moolenaar | 6b7b719 | 2019-01-11 13:42:41 +0100 | [diff] [blame] | 325 | See |sign_jump()| for the equivalent Vim script function. |
| 326 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 327 | :sign jump {id} file={fname} |
| 328 | Open the file {fname} or jump to the window that contains |
| 329 | {fname} and position the cursor at sign {id}. |
| 330 | See remark above about {fname} |:sign-fname|. |
| 331 | If the file isn't displayed in window and the current file can |
| 332 | not be |abandon|ed this fails. |
| 333 | |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 334 | :sign jump {id} group={group} file={fname} |
| 335 | Same but jump to the sign in group {group} |
| 336 | |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 337 | :sign jump {id} [buffer={nr}] *E934* |
Bram Moolenaar | 7571d55 | 2016-08-18 22:54:46 +0200 | [diff] [blame] | 338 | Same, but use buffer {nr}. This fails if buffer {nr} does not |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 339 | have a name. If the buffer argument is not given, use the |
| 340 | current buffer. |
Bram Moolenaar | 7571d55 | 2016-08-18 22:54:46 +0200 | [diff] [blame] | 341 | |
Bram Moolenaar | b328cca | 2019-01-06 16:24:01 +0100 | [diff] [blame] | 342 | :sign jump {id} group={group} [buffer={nr}] |
Bram Moolenaar | 7d83bf4 | 2018-12-29 18:53:55 +0100 | [diff] [blame] | 343 | Same but jump to the sign in group {group} |
| 344 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 345 | |
Bram Moolenaar | 91f84f6 | 2018-07-29 15:07:52 +0200 | [diff] [blame] | 346 | vim:tw=78:ts=8:noet:ft=help:norl: |