tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
20.01k stars 1.01k forks source link

Windows 11: `g?` does not show help #2320

Closed zstadler closed 3 months ago

zstadler commented 3 months ago

I'm running vim 9.1 on Windows 11. vim-fugitive works perfectly well, except for the g? in the :Git window which gives an error:

E149: Sorry, no help for fugitive-map

I've followed the README instructions, after adapting them for Windows:

mkdir %USERPROFILE%\.vim\pack\tpope\start
cd %USERPROFILE%\.vim\pack\tpope\start
git clone https://tpope.io/vim/fugitive.git
vim -u NONE -c "helptags fugitive\doc" -c q

It seems that helptags worked well as dir fugitive\doc shows a tags file.

What am I missing!?

tpope commented 3 months ago

On Windows, the default user directory is %USERPROFILE%\vimfiles, not %USERPROFILE%\.vim. So I wouldn't expect this installation to load at all.

Is it possible you have a second installation somewhere?

zstadler commented 3 months ago

Thanks!

I didn't know that, and indeed there was also another vim-fugitive installation at %USERPROFILE%\vimfiles\pack\tpope\start. I assume it was installed there a long time ago.

Would you mind adding the following to the Installation instructions:

Using command shell on Windows

mkdir %USERPROFILE%\vimfiles\pack\tpope\start
cd %USERPROFILE%\vimfiles\pack\tpope\start
git clone https://tpope.io/vim/fugitive.git
vim -u NONE -c "helptags fugitive\doc" -c q