My FZF preview window works fine as long as I'm in some small project, with fewer files. But when I'm in some node project with node_modules and a ton of files, after selecting the file I want to jump to my vim is getting stuck. Here is a link to my vimrc

How can I debug the problem with my vim?

Please see the attached video to understand better "It is getting stuck". enter image description here

After this, I have to close the terminal and open up a new one, which is not very productive.

Adding plugin-coc tag as I think coc.nvim is also contributing to this issue.


I started using nvim 🤣


1 Answer 1


Thanks to @d-ben-knoble, in my case I had vim-surround in my vimrc which was causing this behaviour I removed that and now is fixed.

  • 3
    Odd that surround broke things… if it was me at that point i would ditch fzf; surround is awesome. Your vim, obviously… just surprised
    – D. Ben Knoble
    Dec 20, 2020 at 14:20
  • Yeah, surround is awesome. I'll have to debug further to check what exactly in surround is breaking it. Dec 20, 2020 at 15:21
  • This looks really wrong: plug#begin('/Users/xenocide/.vim/autoload'), you shouldn't use directory autoload to store your plug-ins, since autoload is used by Vim to implement function namespaces. Just use the default (pass no arguments to plug#begin(), which will store them in ~/.vim/plugged) to make sure you don't create other interference. (Not sure if this was causing that problem, but it's possible it was.)
    – filbranden
    Dec 20, 2020 at 15:41
  • 1
    (Also make sure you clean the old plug-in directories from ~/.vim/autoload.)
    – filbranden
    Dec 20, 2020 at 15:43
  • 1
    Why are you adding rtp+=/usr/local/opt/fzf ? You seem to be fully installing it with vim-plug, so why do you have a system directory in your path too? I could see that breaking things if the two versions don't agree with each other...
    – filbranden
    Dec 20, 2020 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.