]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/whereami.vim
S-F6 is changed with the new tmux
[dotfiles.git] / vim / .vim / plugin / whereami.vim
index 71367936c61dc074e9cc6a329f63b99baf00e787..95126c1ced6b7b3d7ce5ed47ae1501d1e0860876 100644 (file)
@@ -1,7 +1,15 @@
-function! WhereAmI()
-    let where = expand('%:p') . ":" . line('.')
+function! WhereAmI(fmt)
+    let fullpath = expand("%:p")
+    if a:fmt == "gnu"
+        let where = fullpath . ":" . line(".")
+    elseif a:fmt == "lldb"
+        let where = "breakpoint set --file " . fullpath . " --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>