1 function! whereami#pwdLoad()
2 let g:whereami_pwdL=trim(system("pwd -L"))
3 let g:whereami_pwdP=trim(system("pwd -P"))
6 function! whereami#do(fmt) abort
7 let fullpath = expand("%:p")
8 if fullpath[:len(g:whereami_pwdP)-1] ==# g:whereami_pwdP
9 let fullpath = g:whereami_pwdL . fullpath[len(g:whereami_pwdP):]
11 let where = printf(a:fmt, fullpath, line("."))