aboutsummaryrefslogtreecommitdiff
path: root/vim/system/centos.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-03 13:52:15 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-03 13:52:15 +1200
commiteed53f3305af0a1e059d0fbd79a3c85b17894eec (patch)
treed5028417b5354e9f9a97b5695251397da834d845 /vim/system/centos.vim
parent8ecf9dfad5e56b6d67f955d363a5a07ac69bfbc1 (diff)
downloaddotfiles-eed53f3305af0a1e059d0fbd79a3c85b17894eec.tar.gz
Handle system-specific undos with system.vim file
Diffstat (limited to 'vim/system/centos.vim')
-rw-r--r--vim/system/centos.vim29
1 files changed, 29 insertions, 0 deletions
diff --git a/vim/system/centos.vim b/vim/system/centos.vim
new file mode 100644
index 00000000..26289bf8
--- /dev/null
+++ b/vim/system/centos.vim
@@ -0,0 +1,29 @@
+" 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 csprg& cst& csto& csverb&
+ silent! cs 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