aboutsummaryrefslogtreecommitdiff
path: root/vim/system/debian.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/debian.vim
parent8ecf9dfad5e56b6d67f955d363a5a07ac69bfbc1 (diff)
downloaddotfiles-eed53f3305af0a1e059d0fbd79a3c85b17894eec.tar.gz
Handle system-specific undos with system.vim file
Diffstat (limited to 'vim/system/debian.vim')
-rw-r--r--vim/system/debian.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/vim/system/debian.vim b/vim/system/debian.vim
new file mode 100644
index 00000000..125a9240
--- /dev/null
+++ b/vim/system/debian.vim
@@ -0,0 +1,21 @@
+" 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 suffixes&
+if has('cmdline_info')
+ set ruler&
+endif
+if has('printoptions')
+ set printoptions&
+endif
+
+" Restore terminal settings to reflect terminfo
+set t_Co& t_Sf& t_Sb&
+
+" Remove addons directories from 'runtimepath' if present
+silent! set runtimepath-=/var/lib/vim/addons
+silent! set runtimepath-=/var/lib/vim/addons/after