X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Ffile_line.vim;h=45e250ea59db2839658a25f59c126eb3dd5dd1c3;hp=c1544a19c503f357efef833ae29621000ee494d2;hb=efb6ca8ae3033cca0e89b989cc60c855d11a5131;hpb=f1c505a919e4a280c35f327ee563d1321d8c1503 diff --git a/vim/.vim/plugin/file_line.vim b/vim/.vim/plugin/file_line.vim index c1544a1..45e250e 100644 --- a/vim/.vim/plugin/file_line.vim +++ b/vim/.vim/plugin/file_line.vim @@ -7,7 +7,7 @@ let g:loaded_mein_file_line = 1 function! s:gotoline() let file = bufname("%") if filereadable(file) | return | endif - let names = matchlist(bufname("%"), '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$') + let names = matchlist(file, '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$') if empty(names) | return | endif let file_name = names[1] let line_num = names[2] == "" ? "0" : names[2]