commit 9ebff45853affc71f821551bf22782f8d6a04f1e (tree)
parent 8fd12ef14f85e74ac28eea877633978a89cac3b3
Author: Tim Pope <code@tpope.net>
Date: Sun, 8 Jul 2012 01:11:12 -0400
Re-enable editing files named index
This is a crude hack. Watch for edge cases.
Closes #205.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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('<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()