igrigorik / vimgolf

Real Vim ninjas count every keystroke - do you?
http://www.vimgolf.com/
MIT License
672 stars 65 forks source link

Neovim 0.5 removes -Z flag #304

Open dstein64 opened 3 years ago

dstein64 commented 3 years ago

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 commented 3 years ago

Bummer!

BBerabi commented 1 year ago

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

dstein64 commented 1 year ago

"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 commented 4 months ago

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.