[root-config] Rajoute un fichier de configuration pour vim

certbot_on_virtu
_shirenn 2021-01-17 21:58:16 +01:00
parent a82d770043
commit c5c7e16d07
2 changed files with 49 additions and 2 deletions

View File

@ -1,5 +1,10 @@
---
- name: Create or rewrite .nanorc for root
template:
src: nanorc.j2
dest: /root/.nanorc
src: '{{ item.src }}.j2'
dest: '/root/{{ item.dest }}'
loop:
- src: nanorc
dest: .nanorc
- src: vimrc
dest: .vimrc

View File

@ -0,0 +1,42 @@
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=4
set shiftwidth=4
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,[,]
highlight ExtraWhitespace ctermbg=lightgreen guibg=lightgreen
match ExtraWhitespace /\s\+$/