Vim Recall繁體中文

Manipulate signs

:sign

Example

Normal 0 / 2

Manipulate signs.

Signs

Defined sign
Mark: text=>> texthl=Search
Placements
none
Before & after

Before

Signs

Defined sign
Mark: text=>> texthl=Search
Placements
none

After

Signs

Defined sign
Mark: text=>> texthl=Search
Placement 1
notes.txt, line 2, default sign group, text >>

Subject: :sign. Documentation-backed illustration; assumes +signs, named loaded notes.txt and prior :sign define Mark text=>> texthl=Search; not replay-verified. Places previously defined sign Mark at line 2, identified by 1. It changes the sign column, not the buffer text.

Sample buffer
red
blue
Cursor on line 1, column 1
Details & Vim help

Manipulate signs. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :sig[n] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.