My thought was to use to 'goto file' feature, but it would require an implicit file extension and base path.
Vim handles all of this:
:setlocal path=. :setlocal suffixesadd=.txt
(Best put these commands into a ~/.vim/ftplugin/DocuWiki.vim
script.)
Alternatively, you need a way to generate a tags database for source code. The format is simple, see :help tags-file-format
. The default tags program, Exuberant Ctags can be extended with regular expressions (--langmap
, --regex
), that only yields an approximate parsing for complex languages, but should suffice to parse out the DokuWiki links.