From cbab57416452b1f841c0225ecb72f817ef0e1294 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 2 Apr 2014 02:14:32 -0400 Subject: [PATCH] Make commands available in command line window Closes #325. --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 4af2620..074e049 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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('')==''|call fugitive#detect(getcwd())|endif + autocmd CmdWinEnter * call fugitive#detect(expand('#:p')) autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave') augroup END