Re-enable editing files named index

This is a crude hack.  Watch for edge cases.

Closes #205.
This commit is contained in:
Tim Pope
2012-07-08 01:11:12 -04:00
parent 8fd12ef14f
commit 9ebff45853

View File

@@ -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()