updated vim state

This commit is contained in:
Paul 2023-03-10 00:06:58 +01:00
parent e4e892e5ab
commit c0add92d8d
2 changed files with 4 additions and 4 deletions

View File

@ -3,10 +3,10 @@
vim-vimrc-local: vim-vimrc-local:
file.managed: file.managed:
- name: /etc/vim/vimrc.local - name: /etc/vim/vimrc.local
- source: salt://vim/vimrc.j2 - source: salt://vim/templates/vimrc.j2
- user: root - user: root
- group: root - group: root
- mode: 0644 - mode: 0644
- template: jinja - template: jinja
- require: - require:
- pkg: vim-pkg - pkg: vim-pkg

View File

@ -25,7 +25,7 @@ nnoremap <F9> :!%:p
if has("autocmd") if has("autocmd")
au VimEnter,InsertLeave * silent execute '!echo -ne "\e[2 q"' | redraw! au VimEnter,InsertLeave * silent execute '!echo -ne "\e[2 q"' | redraw!
au InsertEnter,InsertChange * au InsertEnter,InsertChange *
\ if v:insertmode == 'i' | \ if v:insertmode == 'i' |
\ silent execute '!echo -ne "\e[6 q"' | redraw! | \ silent execute '!echo -ne "\e[6 q"' | redraw! |
\ elseif v:insertmode == 'r' | \ elseif v:insertmode == 'r' |
\ silent execute '!echo -ne "\e[4 q"' | redraw! | \ silent execute '!echo -ne "\e[4 q"' | redraw! |
@ -50,4 +50,4 @@ nnoremap <silent> <C-b> :NERDTreeToggle<CR>
vnoremap <C-a> g<C-a> vnoremap <C-a> g<C-a>
vnoremap <C-x> g<C-x> vnoremap <C-x> g<C-x>
vnoremap g<C-a> <C-a> vnoremap g<C-a> <C-a>
vnoremap g<C-x> <C-x> vnoremap g<C-x> <C-x>