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

Undefined variable: t:goyo_pads

Open eater opened this issue 8 years ago • 3 comments

I've used Goyo in the past with no problem. Today I ran :Goyo and it said

Error detected while processing function <SNR>152_blank:
line    1:
E121: Undefined variable: t:goyo_pads
Error detected while processing function <SNR>152_blank:
line    1:
E116: Invalid arguments for function bufwinnr(t:goyo_pads.r) <= bufwinnr(t:goyo_pads.l) + 1 || bufwinnr(t:goyo
_pads.b) <= bufwinnr(t:goyo_pads.t) + 3
Error detected while processing function <SNR>152_blank:
line    1:
E15: Invalid expression: bufwinnr(t:goyo_pads.r) <= bufwinnr(t:goyo_pads.l) + 1 || bufwinnr(t:goyo_pads.b) <=
bufwinnr(t:goyo_pads.t) + 3

Presumably conflicting with something? Any idea what it might be?

eater avatar Jul 19 '17 15:07 eater

Apparently it conflicts with christoomey/vim-tmux-navigator. Any idea how to resolve?

eater avatar Jul 19 '17 15:07 eater

I am having the same issue but do not have vim-tmux-navigator installed. I attach the output of vim's :scriptnames.command if anyone wants to look into this. scripts.txt

OndraX avatar Aug 16 '18 19:08 OndraX

This is probably not super helpful, but I was using a vim line that made vim quit if no buffers were alive:

" quit if no buffers are alive
autocmd BufDelete * if len(filter(range(1, bufnr('$')), '! empty(bufname(v:val)) && buflisted(v:val)')) == 1 | quit | endif

It turns out that this made Goyo fail horribly, causing the undefined variable above. Removing it made everything work again.

larsyencken avatar Aug 06 '20 14:08 larsyencken