2020-07-10 00:58:55 +02:00
|
|
|
"{{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
|
|
|
{%- from "vim/map.jinja" import vim with context %}
|
|
|
|
colorscheme {{ vim.config.use_theme }}
|
|
|
|
filetype plugin on
|
|
|
|
{%- if vim.config.use_syntax %}
|
|
|
|
syntax on
|
|
|
|
{%- endif %}
|
|
|
|
{% for key, value in vim.config.lets.items() %}
|
|
|
|
let {{ value.name }}{% if value.value is defined %}={{ value.value }}{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{% for key, value in vim.config.sets.items() %}
|
|
|
|
set {{ value.name }}{% if value.value is defined %}={{ value.value }}{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
|
2020-09-06 16:30:57 +02:00
|
|
|
nnoremap <F9> :!%:p
|
|
|
|
|
2020-07-10 00:58:55 +02:00
|
|
|
if has("autocmd")
|
|
|
|
au VimEnter,InsertLeave * silent execute '!echo -ne "\e[2 q"' | redraw!
|
|
|
|
au InsertEnter,InsertChange *
|
|
|
|
\ if v:insertmode == 'i' |
|
|
|
|
\ silent execute '!echo -ne "\e[6 q"' | redraw! |
|
|
|
|
\ elseif v:insertmode == 'r' |
|
|
|
|
\ silent execute '!echo -ne "\e[4 q"' | redraw! |
|
|
|
|
\ endif
|
|
|
|
au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw!
|
2020-09-06 16:30:57 +02:00
|
|
|
endif
|
2020-09-27 21:12:04 +02:00
|
|
|
|
|
|
|
" NERDTree
|
|
|
|
let g:NERDTreeShowHidden = 1
|
|
|
|
let g:NERDTreeMinimalUI = 1
|
|
|
|
let g:NERDTreeIgnore = []
|
|
|
|
let g:NERDTreeStatusline = ''
|
|
|
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
|
|
|
nnoremap <silent> <C-b> :NERDTreeToggle<CR>
|