Vimwiki also allows you to list all the tags together, with a single :
separating multiple tags, such as in:
:Word:Compund_Word:Other_Tag:
To accomplish this replacement, you can use a :s
command that will replace a sequence of whitespace with a single :
, and additionally match the beginning and end of the line to insert an extra :
on each end.
You can perform that substitution on a specific line with:
:s/^\s*\zs\|\s\+\|\ze\s*$/:/g
See :help /\zs
and :help /\ze
to understand how the matches for the start and end of the line work... The match for whitespace between words should be easy to grasp.