From a9c258b08f1636c05972c9e7fe97a113afd077a2 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 6 Sep 2020 16:30:57 +0200 Subject: [PATCH] updated vim state --- states/vim/plugins.sls | 4 ++-- states/vim/vimrc.j2 | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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