aboutsummaryrefslogtreecommitdiff
path: root/vim/system/centos.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/system/centos.vim')
-rw-r--r--vim/system/centos.vim33
1 files changed, 33 insertions, 0 deletions
diff --git a/vim/system/centos.vim b/vim/system/centos.vim
new file mode 100644
index 00000000..3c1dbc48
--- /dev/null
+++ b/vim/system/centos.vim
@@ -0,0 +1,33 @@
+" Revert settings that CentOS might have touched
+if $VIM !=# '/usr/share/vim'
+ \ || !filereadable('/etc/centos-release')
+ finish
+endif
+
+" Set options back to appropriate defaults
+set history&
+if has('cmdline_info')
+ set ruler&
+endif
+if has('cscope')
+ set cscopeprg&
+ set cscopetag&
+ set cscopetagorder&
+ set cscopeverbose&
+ silent! cscope kill
+endif
+if has('gui')
+ set guicursor&
+endif
+if has('viminfo')
+ set viminfo&
+endif
+
+" Restore terminal settings to reflect terminfo
+set t_Co& t_Sf& t_Sb&
+
+" Delete autocmd groups
+augroup redhat
+ autocmd!
+augroup END
+augroup! redhat