igrigorik / vimgolf

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

Remove -Z when GOLFVIM=nvim #346

Open AlexApps99 opened 2 years ago

AlexApps99 commented 2 years ago

See #304

This PR conditionally removes the -Z flag when $GOLFVIM is set to nvim.

This may make it slightly easier to cheat, but it doesn't really change that much considering that you can make a shellscript for $GOLFVIM that cuts out the first arg pretty easily. (exec nvim "${@:2}")

I also changed the diff tool to use the provided vim by default, since most people that change GOLFVIM would expect vimgolf to use it for diff too.

Making the experience for nvim slightly better.

AlexApps99 commented 2 years ago

For good anti-cheat/validation, it might make sense to validate the key presses on the server (no idea how that'd work, unlikely that would ever be implemented, just putting it out there)

jenvigo commented 2 years ago

I would love to see this PR merged.

It worked perfectly for me.