Fzf: Error runing :Files and :Buffers

Created on 6 Jun 2017  路  9Comments  路  Source: junegunn/fzf

  • Category

    • [ ] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [x] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [x] Linux

    • [ ] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [ ] bash

    • [x] zsh

    • [ ] fish


running :Files second time gives this error :

Error running /usr/bin/zsh '/tmp/vTW8u9Y/11'|'/home/sushrut/.vim/bundle/fzf/bin/fzf' --color=bg+:236,bg:234,spinner:37,hl:244,fg:252,header:244,info:37,pointer:71,marker:37,fg+:252,prompt:140,hl+:148 -m  --prompt '~/3245/' --expect=ctrl-v,ctrl-x,ctrl-t > /tmp/vTW8u9Y/10

If I run the same command in shell, it does return list of files in the directory.

Also if I run :Buffers second time it gives me error :

Error running cat '/tmp/vTW8u9Y/15'|'/home/sushrut/.vim/bundle/fzf/bin/fzf' --color=bg+:236,bg:234,spinner:37,hl:244,fg:252,header:244,info:37,pointer:71,marker:37,fg+:252,prompt:140,hl+:148 +m -x --tiebreak=index --header-lines=1 --ansi -d "\t" -n 2,1..2 --prompt="Buf> " --query '' --expect=ctrl-v,ctrl-x,ctrl-t > /tmp/vTW8u9Y/14`

I have latest FZF binary, and I am using 5.3 zsh.

I see this issue while opening log files. I do not see this issue while opening C files.

my vimrc

   53 "------------------------------------------------------------------------------
   52 " FZF.
   51 "------------------------------------------------------------------------------
   50 "
   49 "let g:fzf_layout = { 'window': 'enew' }
   48 "let g:fzf_layout = { 'down': '~40%' }
   47 let g:fzf_layout = { 'window': '10split enew' }
   46
   45 nnoremap <silent> <Leader>t :Tags<CR>
   44 nnoremap <silent> <leader>f :Files<CR>
   43 nnoremap <silent> <leader>b :Buffers<CR>
   42 nnoremap <silent> <leader>w :Windows<CR>
   41 nnoremap <silent> <leader>l :BLines<CR>
   40 nnoremap <silent> <leader>? :History<CR>
   39 nnoremap <silent> <leader>/ :execute 'Ag ' . input('Ag/')<CR>
   38 nnoremap <silent> <leader>. :AgIn<space>
   37
   36 "------------------------------------------------------------------------------
   35 " FZF vim
   34 "------------------------------------------------------------------------------
   33 "
   32 "" This is the default extra key bindings
   31 let g:fzf_action = {
   30   \ 'ctrl-t': 'tab split',
   29   \ 'ctrl-x': 'split',
   28   \ 'ctrl-v': 'vsplit' }
   27
   26 " Customize fzf colors to match your color scheme
   25 let g:fzf_colors =
   24 \ { 'fg':      ['fg', 'Normal'],
   23   \ 'bg':      ['bg', 'Normal'],
   22   \ 'hl':      ['fg', 'Comment'],
   21   \ 'fg+':     ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
   20   \ 'bg+':     ['bg', 'CursorLine', 'CursorColumn'],
   19   \ 'hl+':     ['fg', 'Statement'],
   18   \ 'info':    ['fg', 'PreProc'],
   17   \ 'prompt':  ['fg', 'Conditional'],
   16   \ 'pointer': ['fg', 'Exception'],
   15   \ 'marker':  ['fg', 'Keyword'],
   14   \ 'spinner': ['fg', 'Label'],
   13   \ 'header':  ['fg', 'Comment'] }
   12
   11
   10 " Mapping selecting mappings
    9 nmap <leader><tab> <plug>(fzf-maps-n)
    8 xmap <leader><tab> <plug>(fzf-maps-x)
    7 omap <leader><tab> <plug>(fzf-maps-o)
    6
    5 " Insert mode completion
    4 imap <c-x><c-k> <plug>(fzf-complete-word)
    3 imap <c-x><c-f> <plug>(fzf-complete-path)
    2 imap <c-x><c-j> <plug>(fzf-complete-file-ag)
    1 imap <c-x><c-l> <plug>(fzf-complete-line)
  213
    1 " Advanced customization using autoload functions
    2 inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'left': '13%'})
    3
    4 nnoremap <silent> S :call SearchWordWithAg()<CR>
    5 function! SearchWordWithAg()
    6   execute 'Ag' expand('<cword>')
    7 endfunction

Most helpful comment

I have same problem,
Update the fzf can fix it, my step:
$ cd ~/.fzf/
$ git pull
$ ./.fzf/install

All 9 comments

Umm, you checked on "Windows", but I see unix-y paths. Can you explain the discrepancy?

And please check if you still have the issue with the following minimal vimrc.

vim -Nu <(curl https://gist.githubusercontent.com/junegunn/6936bf79fedd3a079aeb1dd2f3c81ef5/raw)

(https://gist.githubusercontent.com/junegunn/6936bf79fedd3a079aeb1dd2f3c81ef5/raw)

I must have checked windows by mistake. Changed it to Linux.
I don't see the issue with the your vimrc.

I don't see any issue if I remove let g:fzf_layout = { 'window': '10split enew' } from vimrc.

So, have you tried testing let g:fzf_layout = { 'window': '10split enew' } with the minimal vimrc I suggested above?

let g:fzf_layout = { 'window': '10split enew' } works with the minimal vimrc.
So, looks like combination of fzf_layout with some other vim configuration (in my vimrc) is giving error.

Yeah, it seems to be the case, and I can't really help you with that. Let me know if you find conflicting plugin or configuration.

@sushirol Did you ever find out what caused this? I'm having identical symptoms.

still have same problem on Ubuntu kernel 5.3.0-20-generic and neovim v0.5.0-dev

I have same problem,
Update the fzf can fix it, my step:
$ cd ~/.fzf/
$ git pull
$ ./.fzf/install

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedelgabri picture ahmedelgabri  路  3Comments

lbeier picture lbeier  路  3Comments

natemara picture natemara  路  3Comments

nordlow picture nordlow  路  3Comments

sassanh picture sassanh  路  3Comments