I would like to jump through specific syntax elements in a file. For example, quickly navigate to the next string element. In a
.vim file strings are defined as vimString syntax elements. For clarification, the syntax element under the cursor can be found with the following command:
synIDattr(synID(line('.'), col('.'), 1), "name")
If I wanted to jump through all the strings or comments in a file, it would be useful to be able to get a list of line,col arrays of all syntax elements of a certain type. Or at least a list of line,col arrays of syntax elements of the file or current line.