Use TERM=xterm-256color for gnome-terminal.

Although some sources recommend TERM=gnome-256color for gnome-terminal,
several programs (notably vim) do not recognize gnome-256color and
behave very badly as a result.