I am using Vim on Ubuntu for Windows Subsystem for Linux (WSL). After updating all components involved (Vim, fzf, Ubuntu), the :Buffers command stopped working. Note that :Files, :Lines, etc. work as before. :Buffers returns the following error message: "Error running cat '/tmp/vGxjQKM/6'|'fzf' '+m' '-x' '--tiebreak=index' '--header-lines=1' '--ansi' '-d' '\t' '--with-nth' '3..' '-n' '2,1..2' '--prompt' 'Buf> ' '--query' '' '--preview-window' '+{2}-5' '--preview-window' 'right' '--preview' ''''/home/xxxx/.vim/bundle/fzf.vim/bin/preview.sh''' {1}' --expect=ctrl-v,ctrl-x,ctrl-t --height=28 > /tmp/vGxjQKM/5"
I have tried with a "empty" vimrc file (https://github.com/junegunn/fzf/issues/939), but that did not help. Clean install of Ubuntu (and the required packages) did not change anything. I also found this, suggesting an issue with certain versions of the kernel (https://github.com/junegunn/fzf/issues/1486). But as mentioned, :Files work, so I am not sure if it applies.
Not having :Buffers really disrupts my workflow, so any help would be greatly appreciated.
My setup: Windows 10, Version 1903, WSL 2 Ubuntu 20.04.1 LTS, Kernel: 4.19.128-microsoft-standard VIM - Vi IMproved 8.1 (Included patches: 1-2269) fzf: 0.20.0
SPC fr
to fuzzy search a recent file or open buffer. It doesn't have any dependency; in particular, it doesn't needfzf(1)
norcat(1)
. However, it only works on a recent Vim version (at least 8.2.1744). In case you don't find a solution to your issue, I could try to extract the code relevant to this mapping only, and maybe adapt some part of it, so that it better emulates:Buffers
.