Goal: map <localleader>n
to open "$(git rev-parse --show-toplevel)/notes.md"
I know how to do mappings, and the above git command works fine on the command line. Marrying the two together in vim has been surprisingly hard.
I tried running vim commands like this: :e system("$(git rev-parse --show-toplevel)/notes.md")
, but that just opens a file called "system(".
I'll take a vimscript solution, though a lua solution is slightly more preferable.