--- /dev/null
+vim:
+ pkg.installed:
+ - name: vim
+
+vimrc:
+ file.managed:
+ - name: /etc/vim/vimrc.local
+ - source: salt://basic/files/vimrc
+ - mode: 644
+ - user: root
+ - group: root
+ - require:
+ - pkg: vim
+
+default-editor:
+ alternatives.set:
+ - name: editor
+ - path: /usr/bin/vim.basic
+ - require:
+ - pkg: vim
+
+# vim: filetype=sls tabstop=2 shiftwidth=2
--- /dev/null
+set noai
+set nohlsearch
+set fo="tcq"
+set modeline
+set showmatch
+set ignorecase
+
+autocmd FileType sls set tabstop=2 expandtab shiftwidth=2 softtabstop=2
+autocmd FileType python set tabstop=4 expandtab shiftwidth=4 softtabstop=4
+autocmd FileType sh set tabstop=4 expandtab shiftwidth=4 softtabstop=4
+autocmd FileType perl set tabstop=4 noexpandtab shiftwidth=4
+
+set listchars=tab:»·,trail:·
+" set list
+
+if has("multi_byte")
+ set encoding=utf-8
+ setglobal fileencoding=utf-8
+else
+ echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
+endif
+
+if has("autocmd")
+ " Jump to the last position on opening
+ autocmd BufReadPost *
+ \ if ! exists("g:leave_my_cursor_position_alone") |
+ \ if line("'\"") > 0 && line ("'\"") <= line("$") |
+ \ exe "normal g'\"" |
+ \ endif |
+ \ endif
+endif " has("autocmd")
+
+
+filetype plugin off
+
+color delek
+
+syntax on
+