diff --git a/states/vim/plugins.sls b/states/vim/plugins.sls index f930646..6372e7b 100644 --- a/states/vim/plugins.sls +++ b/states/vim/plugins.sls @@ -9,5 +9,5 @@ vim-plugin-dirs: {{ value.name }}: git.latest: - name: {{ value.repo }} - - target: {{ vim.plugins_dir}}/{{ value.name }} -{%- endfor %} \ No newline at end of file + - target: {{ vim.plugins_dir }}/{{ value.name }} +{%- endfor %} diff --git a/states/vim/vimrc.j2 b/states/vim/vimrc.j2 index 61678ea..5753f94 100644 --- a/states/vim/vimrc.j2 +++ b/states/vim/vimrc.j2 @@ -12,6 +12,8 @@ let {{ value.name }}{% if value.value is defined %}={{ value.value }}{% endif %} set {{ value.name }}{% if value.value is defined %}={{ value.value }}{% endif %} {%- endfor %} +nnoremap :!%:p + if has("autocmd") au VimEnter,InsertLeave * silent execute '!echo -ne "\e[2 q"' | redraw! au InsertEnter,InsertChange * @@ -21,4 +23,4 @@ if has("autocmd") \ silent execute '!echo -ne "\e[4 q"' | redraw! | \ endif au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw! -endif \ No newline at end of file +endif