Move some gui logic to vimrc