The Nextion Instruction Set wiki (as of July 10, 2016) gives an example for using the gpio configuration:
cfgpio 0, 0, 0
That won't compile on Nextion Editor V0.36. Try this instead if you're having trouble:
cfgpio 0,0,0Just take out the spaces between the arguments. That does compile and works a treat!