How can I expand a macro when using the :bmark command? e.g.
:bmark
nmap B :bmark %c %c:h
The goal is to write a shortcut where I can add a bookmark and expand it's path as the tag argument.
Desired end result looks like this:
https://0x0.st/KHPt.png
I don't know how I was able to do this before.
Thanks
If I understood you correctly:
nnoremap <silent> B :execute 'bmark!' '%c' expand('%c')<cr>
Thank you! that's exactly it!
So as a general rule, I'll be looking to the execute command when the help file doesn't explicitly mention macro expansion
execute
Think I found my answer with :bmark!
:bmark!
yeah no. the tags don't expand, only the paths do