X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fwhereami.vim;h=29c34f99f646f43b41f65923a719ffd85cdd4fb7;hp=99e6ed4943f9cd282bac9ea89fdb30c0f7dd5a76;hb=8605a48acf8e07b052da8548d4eda3d37d909510;hpb=89cc304dc0947bb344e3f7d1a27e0027b9b444e3 diff --git a/vim/.vim/plugin/whereami.vim b/vim/.vim/plugin/whereami.vim index 99e6ed4..29c34f9 100644 --- a/vim/.vim/plugin/whereami.vim +++ b/vim/.vim/plugin/whereami.vim @@ -1,8 +1,9 @@ function! WhereAmI(fmt) + let fullpath = substitute(expand("%:p"), "/usr/home/", "/home/", "") if a:fmt == "gnu" - let where = expand("%:p") . ":" . line(".") + let where = fullpath . ":" . line(".") elseif a:fmt == "lldb" - let where = "breakpoint set --file " . expand('%:p') . " --line " . line(".") + let where = "breakpoint set --file " . fullpath . " --line " . line(".") else let where = "unknown fmt" endif