Make commands available in command line window

Closes #325.
This commit is contained in:
Tim Pope 2014-04-02 02:14:32 -04:00
parent 72d382077c
commit cbab574164

View File

@ -198,6 +198,7 @@ augroup fugitive
autocmd FileType netrw call fugitive#detect(expand('%:p'))
autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTreeRoot.path.str())
autocmd VimEnter * if expand('<amatch>')==''|call fugitive#detect(getcwd())|endif
autocmd CmdWinEnter * call fugitive#detect(expand('#:p'))
autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')
augroup END