]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/whereami.vim
g:loaded_* stopper
[dotfiles.git] / vim / .vim / plugin / whereami.vim
index 29c34f99f646f43b41f65923a719ffd85cdd4fb7..8c55eded5f032db1fed06e8819392f70a01c70a3 100644 (file)
@@ -1,5 +1,8 @@
+if exists("g:loaded_mein_whereami") | finish | endif
+let g:loaded_mein_whereami = 1
+
 function! WhereAmI(fmt)
-    let fullpath = substitute(expand("%:p"), "/usr/home/", "/home/", "")
+    let fullpath = expand("%:p")
     if a:fmt == "gnu"
         let where = fullpath . ":" . line(".")
     elseif a:fmt == "lldb"