]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/whereami.vim
Vim scripts refactoring
[dotfiles.git] / vim / .vim / plugin / whereami.vim
index 71367936c61dc074e9cc6a329f63b99baf00e787..33981349176e2fd2643be57d23443db67b86bc86 100644 (file)
@@ -1,7 +1,4 @@
-function! WhereAmI()
-    let where = expand('%:p') . ":" . line('.')
-    let @* = where
-    echomsg where
-endfunction
-
-nmap <leader>w :call WhereAmI()<CR>
+if exists("*whereami#pwdLoad") | finish | endif
+autocmd VimEnter * call whereami#pwdLoad()
+nmap <leader>w :call whereami#do("%s:%d")<CR>
+nmap <leader>W :call whereami#do("breakpoint set --file %s --line %d")<CR>