aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 14:30:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 14:30:20 +1200
commit68f676b65d776afec4acca520daef436f1e1f500 (patch)
treef32dde4bc0ece9d42c3424c3526b913e14c22b57
parent4afefdaf2c43116b9a97b5f5ccbc2c04fb3b48a8 (diff)
downloaddotfiles-68f676b65d776afec4acca520daef436f1e1f500.tar.gz
Add vim config subfile to undo Debian's changes
-rw-r--r--Makefile1
-rw-r--r--vim/config/debian.vim21
2 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4bb09b1a..b42ee72c 100644
--- a/Makefile
+++ b/Makefile
@@ -549,6 +549,7 @@ install-vim-compiler:
install-vim-config:
cp -p -- vim/vimrc $(VIMRC)
+ cp -p -- vim/config/*.vim $(VIMDIR)/config
install-vim-filetype:
cp -p -- vim/filetype.vim vim/scripts.vim $(VIMDIR)
diff --git a/vim/config/debian.vim b/vim/config/debian.vim
new file mode 100644
index 00000000..e50fc260
--- /dev/null
+++ b/vim/config/debian.vim
@@ -0,0 +1,21 @@
+" Revert settings that Debian might have touched
+if $VIM ==# '/usr/share/vim' && filereadable('/etc/debian_version')
+
+ " 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
+
+endif