vim-beancount icon indicating copy to clipboard operation
vim-beancount copied to clipboard

Autocompletion doesn't work in a new tab.

Open sprnza opened this issue 5 years ago • 4 comments

Hi there! If I open a file autocompletion works just fine. If I open the same file in a new tab autocompletion still works, but if I open another file in a new tab, autocompletion stops working for the new file. If I close vim and reopen just the last opened file, autocompletion works fine again. It seems like autocompletion stops working for a new file opened in a new tab.

sprnza avatar Oct 24 '20 05:10 sprnza

I have the same issue.

tzwm avatar Oct 30 '20 16:10 tzwm

@sprnza I changed the b:beancount_root to the global variable g:beancount_root to solve this problem. https://github.com/tzwm/vim-beancount/commit/4e6721e77d66b7a76b958c83f56112d0b21d59e0

tzwm avatar Nov 23 '20 06:11 tzwm

@tzwm If I change it to the global variable auto completion stops working at all.

sprnza avatar Nov 27 '20 06:11 sprnza

@sprnza I changed the b:beancount_root to the global variable g:beancount_root to solve this problem. tzwm@4e6721e

Hi @tzwm ! I've just noticed your code changes, I though you were saying about config in vimrc only. I've altered my beancount.vim per your diff and now it works perfectly fine. But what are limitations of this? Why don't you create a PR?

sprnza avatar Jan 15 '21 06:01 sprnza