When setting up Ubuntu 12.10 64bit (with gnome-terminal 3.6.0) I noticed that my vim colours mess up in the terminal as soon as the terminal loses focus. Everything is fine when using < C-z> and fg, or switching tabs; I've only seen this issue so far with losing focus. I've installed the plugin CSExact, and calling :CSExactColors fixes things right up, but apparently you can't set autocmd's for FocusGained/FocusLost events in terminal vim.
The strange thing is that I have vim on Ubuntu 12.04 32bit (with gnome-terminal 220.127.116.11) on my other computer, with the exact same settings, and this issue has never shown up before. Any ideas on how I can fix this, or a good workaround? Thanks :)