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

Neovim 0.5 removes -Z flag #304

Open
dstein64 opened this issue Jan 10, 2021 · 4 comments
Open

Neovim 0.5 removes -Z flag #304

dstein64 opened this issue Jan 10, 2021 · 4 comments

Comments

@dstein64
Copy link
Contributor

The next Neovim release, version 0.5, removes the -Z flag (restricted mode), which vimgolf uses to disable the use of external shell commands and other functionality.

This will break vimgolf for users that use Neovim (Issue #162, PR #246) with e.g., GOLFVIM=nvim.

@filbranden
Copy link
Collaborator

Bummer!

@BBerabi
Copy link

BBerabi commented Mar 4, 2023

is there any way to fix this? did you find a solution?

@dstein64
Copy link
Contributor Author

dstein64 commented Mar 6, 2023

"did you find a solution?"

I thought this question might be directed towards me, as I created the ticket.

I haven't faced the problem myself, as I use Vim to play vimgolf. I opened the ticket since I thought there would be users affected by Neovim's removal of -Z.

@lennartack
Copy link

As a temporary solution I'm using a wrapper:

#!/bin/bash
exec nvim -n --noplugin -i NONE +0 -u "${@:(-6):1}" -W "${@:(-2):1}" "${@:(-1)}"

That said, I do think it's cheating if your solution doesn't work on vim.

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