fzf.vim
fzf.vim copied to clipboard
:History is noticeably slow when airblade/vim-gitgutter is installed
- [x] I have fzf 0.23.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (
man fzf
) - [x] I have searched through the existing issues
:History
is noticeably slow when airblade/vim-gitgutter
is installed. The window takes a full second or two to appear. Even if gitgutter
is disabled on startup the issue persists. Tested with only fzf
and gitgutter
installed with no other configuration.
I can confirm this as well. If I remove gitgutter, History appears instantly.
@sudochop I know this is old, but I had what might be the same issue you were seeing. Do you happen to have a mapping like nnoremap <leader>h :History<cr>
? I did, and I noticed the delay when using the mapping, but not when using :History
directly.
I realized via :verbose map <leader>h
that vim-gutter has default mappings like <leader>hs
, so vim is waiting for you to type an unambiguous sequence (:h map-ambiguous
).
I wasn't using those vim-gutter mappings, so I disabled them with let g:gitgutter_map_keys = 0
, and that fixed it. And I'll just re-map the git-gutter mappings that I want.