1 if exists('*<SID>pwdLoad') | finish | endif
4 let g:mein_pwdL=trim(system("pwd -L"))
5 let g:mein_pwdP=trim(system("pwd -P"))
8 autocmd VimEnter * call s:pwdLoad()
10 function! s:WhereAmI(fmt)
11 let fullpath = expand("%:p")
12 if fullpath[:len(g:mein_pwdP)-1] ==# g:mein_pwdP
13 let fullpath = g:mein_pwdL . fullpath[len(g:mein_pwdP):]
16 let where = fullpath . ":" . line(".")
17 elseif a:fmt == "lldb"
18 let where = "breakpoint set --file " . fullpath . " --line " . line(".")
20 let where = "unknown fmt"
26 nmap <leader>w :call <SID>WhereAmI("gnu")<CR>
27 nmap <leader>W :call <SID>WhereAmI("lldb")<CR>