From a90cc48c7a7b41ce366a07f91ccedc82cf2d0c1a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Aug 2012 10:35:52 -0400 Subject: [PATCH] Fix creation of files named index Closes #231. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 5489c9a..b2c54f7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2180,7 +2180,7 @@ augroup fugitive_files autocmd BufReadCmd index{,.lock} \ if fugitive#is_git_dir(expand(':p:h')) | \ exe s:BufReadIndex() | - \ else | + \ elseif filereadable(expand('')) | \ read | \ 1delete | \ endif