Closed shuhei closed 4 years ago
<C+p> for :GFiles and <C+g> for :GGrep don't work in non-git directories of course.
<C+p>
:GFiles
<C+g>
:GGrep
Tweak the bindings so that they switch to :Files and :Grep in non-git directories.
:Files
:Grep
isdirectory('.git') returns whether the current directory has a .git directory or not.
isdirectory('.git')
.git
<C+p>
for:GFiles
and<C+g>
for:GGrep
don't work in non-git directories of course.Tweak the bindings so that they switch to
:Files
and:Grep
in non-git directories.