aboutsummaryrefslogtreecommitdiff
path: root/vim/system/debian.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-17 00:22:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-17 00:22:36 +1200
commit9b53214dc18da5c54ea18435edf603d95a08f741 (patch)
tree8a280273960b7da90376928ed214b5e4c8682678 /vim/system/debian.vim
parentAdjust formatting of autocmd (diff)
downloaddotfiles-9b53214dc18da5c54ea18435edf603d95a08f741.tar.gz
dotfiles-9b53214dc18da5c54ea18435edf603d95a08f741.zip
Revert "Dispense with system-dependent files"
This reverts commit 1c51d2e98e0e0ec91da7ff3a93ad84f9767d0658. Already found problems--trips up using the -V command line option.
Diffstat (limited to 'vim/system/debian.vim')
-rw-r--r--vim/system/debian.vim18
1 files changed, 18 insertions, 0 deletions
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