annotate runtime/doc/sign.txt @ 10816:457615ba1a64

Added tag v8.0.0297 for changeset f883a122439676beb76d94393d3a853bd915fbf5
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Feb 2017 23:00:05 +0100
parents 9f48eab77d62
children 1174611ad715
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10198
9f48eab77d62 commit https://github.com/vim/vim/commit/bb76f24af2010943387ce696a7092175b4ecccf2
Christian Brabandt <cb@256bit.org>
parents: 9908
diff changeset
1 *sign.txt* For Vim version 8.0. Last change: 2016 Aug 17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Gordon Prieur
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 and Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 Sign Support Features *sign-support*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 1. Introduction |sign-intro|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 2. Commands |sign-commands|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 {Vi does not have any of these features}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 {only available when compiled with the |+signs| feature}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 1. Introduction *sign-intro* *signs*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 When a debugger or other IDE tool is driving an editor it needs to be able
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 to give specific highlights which quickly tell the user useful information
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
21 about the file. One example of this would be a debugger which had an icon
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
22 in the left-hand column denoting a breakpoint. Another example might be an
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
23 arrow representing the Program Counter (PC). The sign features allow both
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 placement of a sign, or icon, in the left-hand side of the window and
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
25 definition of a highlight which will be applied to that line. Displaying the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 sign as an image is most likely only feasible in gvim (although Sun
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
27 Microsystem's dtterm does support this it's the only terminal emulator I know
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 of which does). A text sign and the highlight should be feasible in any color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 terminal emulator.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
31 Signs and highlights are not useful just for debuggers. Sun's Visual
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 WorkShop uses signs and highlights to mark build errors and SourceBrowser
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
33 hits. Additionally, the debugger supports 8 to 10 different signs and
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 highlight colors. |workshop| Same for Netbeans |netbeans|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 There are two steps in using signs:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 1. Define the sign. This specifies the image, text and highlighting. For
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 example, you can define a "break" sign with an image of a stop roadsign and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 text "!!".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 2. Place the sign. This specifies the file and line number where the sign is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 displayed. A defined sign can be placed several times in different lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 and files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 When signs are defined for a file, Vim will automatically add a column of two
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 characters to display them in. When the last sign is unplaced the column
9860
9eaf8ef656e9 commit https://github.com/vim/vim/commit/0952131376a517fc12dc5ae908a97018b4ee23f0
Christian Brabandt <cb@256bit.org>
parents: 5908
diff changeset
48 disappears again. This behavior can be changed with the 'signcolumn' option.
9eaf8ef656e9 commit https://github.com/vim/vim/commit/0952131376a517fc12dc5ae908a97018b4ee23f0
Christian Brabandt <cb@256bit.org>
parents: 5908
diff changeset
49
9eaf8ef656e9 commit https://github.com/vim/vim/commit/0952131376a517fc12dc5ae908a97018b4ee23f0
Christian Brabandt <cb@256bit.org>
parents: 5908
diff changeset
50 The color of the column is set with the SignColumn group |hl-SignColumn|.
9eaf8ef656e9 commit https://github.com/vim/vim/commit/0952131376a517fc12dc5ae908a97018b4ee23f0
Christian Brabandt <cb@256bit.org>
parents: 5908
diff changeset
51 Example to set the color: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 :highlight SignColumn guibg=darkgrey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 2. Commands *sign-commands* *:sig* *:sign*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1702
diff changeset
58 Here is an example that places a sign "piet", displayed with the text ">>", in
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 line 23 of the current file: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 :sign define piet text=>> texthl=Search
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 :exe ":sign place 2 line=23 name=piet file=" . expand("%:p")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 And here is the command to delete it again: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 :sign unplace 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 Note that the ":sign" command cannot be followed by another command or a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 comment. If you do need that, use the |:execute| command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 DEFINING A SIGN. *:sign-define* *E255* *E160* *E612*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 :sign define {name} {argument}...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 Define a new sign or set attributes for an existing sign.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 The {name} can either be a number (all digits) or a name
2608
7d8af31066c8 Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
75 starting with a non-digit. Leading digits are ignored, thus
7d8af31066c8 Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
76 "0012", "012" and "12" are considered the same name.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 About 120 different signs can be defined.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 Accepted arguments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2608
diff changeset
81 icon={bitmap}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 Define the file name where the bitmap can be found. Should be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 a full path. The bitmap should fit in the place of two
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 characters. This is not checked. If the bitmap is too big it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 will cause redraw problems. Only GTK 2 can scale the bitmap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 to fit the space available.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 toolkit supports ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 GTK 1 pixmap (.xpm)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 GTK 2 many
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 Motif pixmap (.xpm)
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2608
diff changeset
91 Win32 .bmp, .ico, .cur
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2608
diff changeset
92 pixmap (.xpm) |+xpm_w32|
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 linehl={group}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 Highlighting group used for the whole line the sign is placed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 in. Most useful is defining a background color.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 text={text} *E239*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 Define the text that is displayed when there is no icon or the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 GUI is not being used. Only printable characters are allowed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 and they must occupy one or two display cells.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 texthl={group}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 Highlighting group used for the text item.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 DELETING A SIGN *:sign-undefine* *E155*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 :sign undefine {name}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 Deletes a previously defined sign. If signs with this {name}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 are still placed this will cause trouble.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 LISTING SIGNS *:sign-list* *E156*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 :sign list Lists all defined signs and their attributes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 :sign list {name}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 Lists one defined sign and its attributes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 PLACING SIGNS *:sign-place* *E158*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 :sign place {id} line={lnum} name={name} file={fname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 Place sign defined as {name} at line {lnum} in file {fname}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 *:sign-fname*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 The file {fname} must already be loaded in a buffer. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 exact file name must be used, wildcards, $ENV and ~ are not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 expanded, white space must not be escaped. Trailing white
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 space is ignored.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 The sign is remembered under {id}, this can be used for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 further manipulation. {id} must be a number.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 It's up to the user to make sure the {id} is used only once in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 each file (if it's used several times unplacing will also have
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 to be done several times and making changes may not work as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 expected).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 :sign place {id} line={lnum} name={name} buffer={nr}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 Same, but use buffer {nr}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
5908
32de51778c27 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5510
diff changeset
142 *E885*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 :sign place {id} name={name} file={fname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 Change the placed sign {id} in file {fname} to use the defined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 sign {name}. See remark above about {fname} |:sign-fname|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 This can be used to change the displayed sign without moving
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 it (e.g., when the debugger has stopped at a breakpoint).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 :sign place {id} name={name} buffer={nr}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 Same, but use buffer {nr}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 REMOVING SIGNS *:sign-unplace* *E159*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 :sign unplace {id} file={fname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 Remove the previously placed sign {id} from file {fname}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 See remark above about {fname} |:sign-fname|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3672
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
159 :sign unplace * file={fname}
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
160 Remove all placed signs in file {fname}.
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
161
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 :sign unplace {id} buffer={nr}
3672
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
163 Remove the previously placed sign {id} from buffer {nr}.
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
164
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
165 :sign unplace * buffer={nr}
5aad2c444a00 updated for version 7.3.596
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
166 Remove all placed signs in buffer {nr}.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 :sign unplace {id}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 Remove the previously placed sign {id} from all files it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 appears in.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 :sign unplace *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 Remove all placed signs.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 :sign unplace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 Remove the placed sign at the cursor position.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
5510
d7d7bac1a163 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5294
diff changeset
179 LISTING PLACED SIGNS *:sign-place-list*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 :sign place file={fname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 List signs placed in file {fname}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 See remark above about {fname} |:sign-fname|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 :sign place buffer={nr}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 List signs placed in buffer {nr}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 :sign place List placed signs in all files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 JUMPING TO A SIGN *:sign-jump* *E157*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 :sign jump {id} file={fname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 Open the file {fname} or jump to the window that contains
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 {fname} and position the cursor at sign {id}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 See remark above about {fname} |:sign-fname|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 If the file isn't displayed in window and the current file can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 not be |abandon|ed this fails.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
9908
2b6654519a7c commit https://github.com/vim/vim/commit/7571d55f7dcc009a375b2124cce2c8b21f361234
Christian Brabandt <cb@256bit.org>
parents: 9860
diff changeset
200 :sign jump {id} buffer={nr} *E934*
2b6654519a7c commit https://github.com/vim/vim/commit/7571d55f7dcc009a375b2124cce2c8b21f361234
Christian Brabandt <cb@256bit.org>
parents: 9860
diff changeset
201 Same, but use buffer {nr}. This fails if buffer {nr} does not
2b6654519a7c commit https://github.com/vim/vim/commit/7571d55f7dcc009a375b2124cce2c8b21f361234
Christian Brabandt <cb@256bit.org>
parents: 9860
diff changeset
202 have a name.
2b6654519a7c commit https://github.com/vim/vim/commit/7571d55f7dcc009a375b2124cce2c8b21f361234
Christian Brabandt <cb@256bit.org>
parents: 9860
diff changeset
203
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 vim:tw=78:ts=8:ft=help:norl: