I'm trying to save the current relative path of my file and line number into my clipboard.
I would like to have
But I don't understand how expand works.
They have this example :
Example: :let &tags = expand("%:p:h") . "/tags"
But I failed when I want to combine relative path
expand("%:h") and file_name
:echom expand("%:h:t") . ':' . line(".")
Any ideas ?