michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
557 stars 73 forks source link

After installation, :ZettelOpen doesn't work #99

Open interfect opened 3 years ago

interfect commented 3 years ago

I installed the plugin and fzf, and set g:nv_search_paths in my ~/.vimrc. Now, when I try to :ZettelOpen (which is the only command the README describes the plugin as providing), it throws up a bunch of errors instead of starting an interactive search of my empty Zettel directory.

Error detected while processing function zettel#vimwiki#make_random_chars:
line    1:
E117: Unknown function: srand
Error detected while processing function zettel#vimwiki#make_random_chars[2]..<lambda>1:
line    1:
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
E121: Undefined variable: seed
E116: Invalid arguments for function rand(seed) % 26)->nr2char()
Error detected while processing function zettel#fzf#sink_onefile[4]..zettel#fzf#execute_fzf[9]..fzf#vim#ag[8]..fzf#vim#ag_raw[4]..fzf#vim#grep[24]..<SNR>53_fzf[20]..fzf#run[59]..<SNR>26_execute_term[88]..<SNR>26_dopopd:
line   20:
E716: Key not present in Dictionary: dir && (!&autochdir || w:fzf_pushd.bufname ==# bufname(''))
Error detected while processing function zettel#fzf#sink_onefile[4]..zettel#fzf#execute_fzf:
line    9:
E171: Missing :endif

I'm using the GVim that ships with Ubuntu 20.04, which is Vim 8.1.

Did I do the installation wrong? Is my Vim insufficient in some way? Is there some other command that the plugin provides as an entry point besides :ZettelOpen?

interfect commented 3 years ago

It looks like, to run properly on Vim 8.1, #84 needs to be merged.

achieveordie commented 3 years ago

@interfect Did you figure out how to use the fork of #84 to work around it? I've been facing the same issue. I was wondering if using binary files directly and setting the &rtp to point to that location to make it work. This might be relevant, though I'm still stuck. I'm working on Windows 10 though.

interfect commented 3 years ago

@achieveordie No, I haven't yet. I think if you put that on the default branch of any repo you can use that repo with the plugin manager, but Vundle still has https://github.com/VundleVim/Vundle.vim/issues/35 not really fixed and can't be told to use a non-default branch.

interfect commented 3 years ago

I put it up in interfect/vim-zettel, but it still doesn't work; something about the fzf_popd function is broken still in 8.1.

NeuroWinter commented 3 years ago

I am also getting this issue with vim 8.1.

michal-h21 commented 2 years ago

@interfect do you still experience thiss issue?