Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installation, :ZettelOpen doesn't work #99

Open
interfect opened this issue Feb 10, 2021 · 6 comments
Open

After installation, :ZettelOpen doesn't work #99

interfect opened this issue Feb 10, 2021 · 6 comments

Comments

@interfect
Copy link

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
Copy link
Author

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

@achieveordie
Copy link

@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
Copy link
Author

@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 VundleVim/Vundle.vim#35 not really fixed and can't be told to use a non-default branch.

@interfect
Copy link
Author

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
Copy link

I am also getting this issue with vim 8.1.

@michal-h21
Copy link
Owner

@interfect do you still experience thiss issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants