mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Re-enable editing files named index
This is a crude hack. Watch for edge cases. Closes #205.
This commit is contained in:
@@ -2166,6 +2166,9 @@ augroup fugitive_files
|
|||||||
autocmd BufReadCmd index{,.lock}
|
autocmd BufReadCmd index{,.lock}
|
||||||
\ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
|
\ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
|
||||||
\ exe s:BufReadIndex() |
|
\ exe s:BufReadIndex() |
|
||||||
|
\ else |
|
||||||
|
\ read <amatch> |
|
||||||
|
\ 1delete |
|
||||||
\ endif
|
\ endif
|
||||||
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
|
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
|
||||||
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
|
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
|
||||||
|
|||||||
Reference in New Issue
Block a user