I have a git repository:
I mounted core to another directory:
mount --bind ~/home/foo/repo ~/home/bar
Now I want to edit my code with vim and use vim-fugitive.
vim ~/home/bar/myCode.txt; :Gblame
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
According to vim-fugitive sources, you can use Fugitive commands for any file that belongs to git index. E.g.
cd ~ vim ~/home/foo/repo/README.md # works vim ~/home/bar/README.md # works too