I recently had to change my Linux work environment from a personal Ubuntu system (having full admin rights) to a corporate Red Hat system (having very limited control on the system). Both running GNOME.Many things seem to work differently. Above all is the gVim behaviour. I have Vim installed on two Linux machines and one Windows machine. I like the default Windows behaviour, so I set the .gvimrc file as follows:source $VIMRUNTIME/mswin.vimsyn onset hlsset tabstop=4set shiftwidth=4set smartindentset smarttabSome annoying differences I experience, between Red Hat and Ubuntu or Windows are:The undo (Ctrl+Z or Undo button) is acting like in Vi, that is 2nd undo, undoes the 1st one, so the last change is removed and then restored. Instead, it should be an undo history (up to the undolevel variable setting)..When in Insert mode, deleting text with the backspace key does not remove the deleted text from the screen, until I either move away from that line or exit Insert mode.The following variables are set similarly in Red Hat and Windows:nocompatible  undodir=.noundofile  undolevels=1000  undoreload=10000Question: How can I make my new Red Hat gVim environment behave like the Windows and Ubuntu one?Vim versions:Red Hat - 7.4 (Aug 10, 2013)Windows - 7.4 (Aug 10, 2013)Ubuntu  - 7.2 (Aug  9, 2008)
Changing gVim behaviour on Red Hat
rhel;vim;gnome;gvim
Sounds like your Vim is in vi-compatible mode; :set compatible? will print compatible then.You need to create a ~/.vimrc file (empty one will suffice) to switch Vim to nocompatible mode. In general, it's recommended to put your customizations there, and leave .gvimrc for the very few GUI-only settings.