From 6cb2c2da2d54fc4423697e5b6b9f6459dd9b9dad Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 6 May 2020 17:35:06 +0300 Subject: [PATCH] LLDB WhereAmI formatting --- vim/.vim/plugin/whereami.vim | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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") -- 2.44.0