X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Ffile_line.vim;fp=vim%2F.vim%2Fplugin%2Ffile_line.vim;h=65962d2f9fc8d2c0e77aec4f1bc0c5149020032b;hb=50295e8d1d1b2ab4d5514d441ba28e45e7699c55;hp=e5a6a927eae606c528b73434f8364f9dd22bbc6f;hpb=a010257de1f4776e8974ad7524c81d9b499a7b3e;p=dotfiles.git diff --git a/vim/.vim/plugin/file_line.vim b/vim/.vim/plugin/file_line.vim index e5a6a92..65962d2 100644 --- a/vim/.vim/plugin/file_line.vim +++ b/vim/.vim/plugin/file_line.vim @@ -1,6 +1,9 @@ " 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 + function! s:gotoline() let names = matchlist(bufname("%"), '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$') if empty(names) | return | endif