I am experiencing an odd problem with GVim. Whenever I open a file, with the exception of a few really simple files without any code, Xorg crashes and I am booted back to a black screen and then the login screen. This problem does not occur when opening the same files GEdit or Vim, only with GVim. This problem occur when using both vim-gnome and vim-gtk and I have tried purging both and reinstalling one at a time. The problem seems to be related to my .vimrc file, since moving or renaming ir makes the problem go away. However, this file worked fine before I reinstalled Ubuntu. Here are its contents:
"Vim Configuration File
"Background and Text Settings
set guifont=Monospace\ 12
map <F7> :tabp<Enter>
map <F8> :tabn<Enter>
"Text Width and Wrapping
OS: Ubuntu 13.10, 64 bit, recently reinstalled.
Graphics: nvidia-331 with bumblebee, installed according to this website, with the exception that nvidia-settings-331 was replaced by nvidia-settings.
Crash file: /var/crash/_usr_bin_Xorg.0.crash
Let me know if I can give any more information. Any help you oculd lend in helping me solve this problem would be most appreciated. Thank you!