X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fwhereami.vim;h=99e6ed4943f9cd282bac9ea89fdb30c0f7dd5a76;hp=71367936c61dc074e9cc6a329f63b99baf00e787;hb=6cb2c2da2d54fc4423697e5b6b9f6459dd9b9dad;hpb=504dae5e828b7b543b22906352a7e95c0198615d diff --git a/vim/.vim/plugin/whereami.vim b/vim/.vim/plugin/whereami.vim index 7136793..99e6ed4 100644 --- a/vim/.vim/plugin/whereami.vim +++ b/vim/.vim/plugin/whereami.vim @@ -1,7 +1,14 @@ -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 w :call WhereAmI() +nmap w :call WhereAmI("gnu") +nmap W :call WhereAmI("lldb")