From 9ebff45853affc71f821551bf22782f8d6a04f1e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 8 Jul 2012 01:11:12 -0400 Subject: [PATCH] Re-enable editing files named index This is a crude hack. Watch for edge cases. Closes #205. --- plugin/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index e9059e8..a08d57d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2166,6 +2166,9 @@ augroup fugitive_files autocmd BufReadCmd index{,.lock} \ if fugitive#is_git_dir(expand(':p:h')) | \ exe s:BufReadIndex() | + \ else | + \ read | + \ 1delete | \ endif autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead() autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()