fzf.vim icon indicating copy to clipboard operation
fzf.vim copied to clipboard

Freeze if running :@ while opening a file

Open agguser opened this issue 3 years ago • 0 comments

  • [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

Vim freezes if using fzf.vim to open a file that runs :@ (see :h :@). E.g.,

$ echo 1 > t.t
$ vim -c 'au BufRead t.t let @o = "echom 111\nechom 222" | @o'
:Files
t.t
(freeze)

, but does not freeze if opened with :e instead of :Files. This used to work without problems, don't know why it doesn't work now.

Edit: :Files! (fullscreen) works fine. So my workaround is

let g:fzf_layout = exists('$TMUX') ? {'tmux': '-p90%,80%'} : {}

agguser avatar Jun 03 '21 03:06 agguser