diff options
Diffstat (limited to 'vim/system')
-rw-r--r-- | vim/system/centos.vim | 33 | ||||
-rw-r--r-- | vim/system/debian.vim | 18 |
2 files changed, 51 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 diff --git a/vim/system/debian.vim b/vim/system/debian.vim new file mode 100644 index 00000000..07649f07 --- /dev/null +++ b/vim/system/debian.vim @@ -0,0 +1,18 @@ +" Revert settings that Debian might have touched +if $VIM !=# '/usr/share/vim' + \ || !filereadable('/etc/debian_version') + finish +endif + +" Set options back to appropriate defaults +set history& +set printoptions& +set ruler& +set suffixes& + +" Restore terminal settings to reflect terminfo +set t_Co& t_Sf& t_Sb& + +" Remove addons directories from 'runtimepath' if present +set runtimepath-=/var/lib/vim/addons +set runtimepath-=/var/lib/vim/addons/after |