Problem
I use vim and vimwiki and have files that have predictable headings like ## Planning
and ## Todo
.
I want to do something like this in my vimrc:
/## Todo
mt
which will happen on file load if there is a ## Todo
in the file.
But I'm not mapping a command with map
or imap
. It's also not a setting that can be set with set
. So I am looking for some vimscript keyword that autostarts on file load.
Question
How do you search and mark on file load in the vimrc?