1 function! WhereAmI(fmt)
2 let fullpath = substitute(expand("%:p"), "/usr/home/", "/home/", "")
4 let where = fullpath . ":" . line(".")
6 let where = "breakpoint set --file " . fullpath . " --line " . line(".")
8 let where = "unknown fmt"
14 nmap <leader>w :call WhereAmI("gnu")<CR>
15 nmap <leader>W :call WhereAmI("lldb")<CR>