-function! WhereAmI()
- let where = expand('%:p') . ":" . line('.')
+function! WhereAmI(fmt)
+ if a:fmt == "gnu"
+ let where = expand("%:p") . ":" . line(".")
+ elseif a:fmt == "lldb"
+ let where = "breakpoint set --file " . expand('%:p') . " --line " . line(".")
+ else
+ let where = "unknown fmt"
+ endif
let @* = where
echomsg where
endfunction
-nmap <leader>w :call WhereAmI()<CR>
+nmap <leader>w :call WhereAmI("gnu")<CR>
+nmap <leader>W :call WhereAmI("lldb")<CR>