Change option in "vimrc"

Set "ttimeout" if no GUI running,
to disable a waiting for <ESC>.
Reset "ttimeout" otherwise since <ESC> is not used to start a keycode,
hence no such problem exists.