Skip to content

Instantly share code, notes, and snippets.

@joeywang
Created October 24, 2024 21:53
Show Gist options
  • Select an option

  • Save joeywang/eecce444a00e146fa703214248a51120 to your computer and use it in GitHub Desktop.

Select an option

Save joeywang/eecce444a00e146fa703214248a51120 to your computer and use it in GitHub Desktop.
:echo fnamemodify(expand("%"), ":~:.")

:echo expand("%:~:.")

linenumber

# echo join([expand('%'),  line(".")], ':')
nnoremap <leader>cfn :let @*=expand("%").":".line(".")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment