]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/file_line.vim
Detect already loaded code with simpler <SID> check
[dotfiles.git] / vim / .vim / plugin / file_line.vim
index 45e250ea59db2839658a25f59c126eb3dd5dd1c3..8d7c429b57d975d46ac4fcb8d3eb2c4b58ec5943 100644 (file)
@@ -1,8 +1,7 @@
 " Simplified version of http://www.vim.org/scripts/script.php?script_id=2184
 " that does not replace current window
 
-if exists("g:loaded_mein_file_line") | finish | endif
-let g:loaded_mein_file_line = 1
+if exists('*<SID>gotoline') | finish | endif
 
 function! s:gotoline()
     let file = bufname("%")