templier-ansible/roles/vim/templates/vimrc.j2
Yohann D'ANELLO b742395cd4
Fix comments for vim
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-03-18 00:46:38 +01:00

49 lines
717 B
Django/Jinja

{{ ansible_header | comment(decoration='"') }}
if has('autocmd')
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
set viminfo=
set autoindent
set backspace=indent,eol,start
set complete-=i
set smarttab
set tabstop=2
set shiftwidth=2
set expandtab
set laststatus=2
set ruler
set showcmd
set wildmenu
set incsearch
set encoding=utf-8
if &listchars ==# 'eol:$'
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
endif
set formatoptions+=j
set autoread
if &tabpagemax < 50
set tabpagemax=50
endif
set whichwrap+=<,>,h,l,[,]
colorscheme elflord
highlight ExtraWhitespace ctermbg=lightgreen guibg=lightgreen
match ExtraWhitespace /\s\+$/
set tw=80