No able to run gedit in lab

Whenever I try to run gedit in the lab I get below error; please look into this. I need to use to create configuration files and other files. This is slowing down my practice.

Error for your reference:
gedit example.conf
** (gedit:8102): WARNING **: Could not open X display
(gedit:8102): Gtk-WARNING **: cannot open display:

We do not have gedit in the lab. You either have to use nano or vi.