I am using vi as a note-taking and outlining tool and therefore I thought that this stackexchange site would be appropriate to ask this question. I am constructing the tags file by myself. What I would like to do is that when I open my notes oroutline file, vi reads the tags present in this file, highlights them and also displays the tag labels in a vertical preview window. I have no experiencein vim scripting so I would appreciate some help.Currently I am using a bash script to generate a tag labels file taglabels in $PWD using cut and loading it in a separate vertical windowMy script looks like this#! /bin/bashcut -f1 $PWD/tags > $PWD/taglabelsvi -c :30vsp $PWD/taglabels $1As is obvious, the script does not highlight the tags present in the file nor does it show only the tags present in the file. On the contrary it showsall the tags present in $PWD/tags.I looked into ctags and the taglist plugin but they seem to be more suited for code than for free-form text.If anyone has any suggestions on how to improve on this scenario I would be grateful.Thanks.
Note-taking and outlining using Vi: On startup, highlight tags and display tags in a preview window
bash;vim;vi;gvim