Permalink
Browse files

Re-enable editing files named index

This is a crude hack.  Watch for edge cases.

Closes #205.
  • Loading branch information...
1 parent 8fd12ef commit 9ebff45853affc71f821551bf22782f8d6a04f1e @tpope committed Jul 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 plugin/fugitive.vim
View
@@ -2166,6 +2166,9 @@ augroup fugitive_files
autocmd BufReadCmd index{,.lock}
\ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
\ exe s:BufReadIndex() |
+ \ else |
+ \ read <amatch> |
+ \ 1delete |
\ endif
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()

0 comments on commit 9ebff45

Please sign in to comment.