diff --git a/states/vim/config.sls b/states/vim/config.sls index 75fc6cf..eae8d32 100644 --- a/states/vim/config.sls +++ b/states/vim/config.sls @@ -3,10 +3,10 @@ vim-vimrc-local: file.managed: - name: /etc/vim/vimrc.local - - source: salt://vim/vimrc.j2 + - source: salt://vim/templates/vimrc.j2 - user: root - group: root - mode: 0644 - template: jinja - require: - - pkg: vim-pkg \ No newline at end of file + - pkg: vim-pkg diff --git a/states/vim/vimrc.j2 b/states/vim/templates/vimrc.j2 similarity index 96% rename from states/vim/vimrc.j2 rename to states/vim/templates/vimrc.j2 index d5a1e13..4f1938d 100644 --- a/states/vim/vimrc.j2 +++ b/states/vim/templates/vimrc.j2 @@ -25,7 +25,7 @@ nnoremap :!%:p if has("autocmd") au VimEnter,InsertLeave * silent execute '!echo -ne "\e[2 q"' | redraw! au InsertEnter,InsertChange * - \ if v:insertmode == 'i' | + \ if v:insertmode == 'i' | \ silent execute '!echo -ne "\e[6 q"' | redraw! | \ elseif v:insertmode == 'r' | \ silent execute '!echo -ne "\e[4 q"' | redraw! | @@ -50,4 +50,4 @@ nnoremap :NERDTreeToggle vnoremap g vnoremap g vnoremap g -vnoremap g \ No newline at end of file +vnoremap g