Browse Source

vim: Do not use the Debian default vimrc. Ever.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 years ago
parent
commit
40755b33a6
2 changed files with 6 additions and 0 deletions
  1. 4 0
      vim/init.sls
  2. 2 0
      vim/vimrc.local

+ 4 - 0
vim/init.sls

@@ -6,6 +6,10 @@ vim:
   pkg.installed:
     - name: vim
 
+/etc/vim/vimrc.local:
+  file.managed:
+    - source: salt://vim/vimrc.local
+
 /root/.vimrc:
   file.managed:
     - source: salt://vim/vimrc

+ 2 - 0
vim/vimrc.local

@@ -0,0 +1,2 @@
+" Do not load defaults ever at all
+let g:skip_defaults_vim = 1