shuhei / dotfiles

🍞 My personal dotfiles that have configurations for Vim, tmux, Alacritty, Git, etc.
7 stars 2 forks source link

Make fzf.vim commands work in non-git directories #15

Closed shuhei closed 4 years ago

shuhei commented 4 years ago

<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.

shuhei commented 4 years ago

isdirectory('.git') returns whether the current directory has a .git directory or not.