Link a highlight group to another.
:hi link Foo Comment
:hi Foo
Foo xxx links to Comment
Setting attributes on the group disconnects the link.
:hi Foo guifg=red
:hi Foo
Foo xxx guifg=red
:hi Bar guifg=red
:hi Bar
Bar xxx guifg=red
:hi link Bar Comment
E414: group has settings, highlight link ignored
:hi! link Bar Comment
Bar xxx guifg=red
links to Comment
This combines the attributes and the link.
:hi link Baz Comment
:hi Baz
Baz xxx links to Comment
:hi link Baz Operator
:hi Baz
Baz xxx links to Operator
:hi default link Baz Keyword
:hi Baz
Baz xxx links to Operator