vim: add role

This commit is contained in:
Johanna Dorothea Reichmann 2019-05-24 22:46:04 +02:00
parent 3ff61351ba
commit 051a8879d4
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
6 changed files with 37 additions and 0 deletions

View File

@ -22,3 +22,7 @@ tmux:
hosts:
xenon:
vim:
hosts:
xenon:

23
roles/vim/tasks/main.yml Normal file
View File

@ -0,0 +1,23 @@
---
- name: Ensure vim is installed
package:
name: vim
state: present
- name.: Ensure ~/.vim/colors folder exists
file:
path: ~/.vim/colors
state: directory
recurse: yes
- name: Copy kuroi color scheme
copy:
src: kuroi.vim.j2
dest: ~/.vim/colors/kuroi.vim
- name: Template vim config
template:
src: vimrc.j2
dest: ~/.vimrc

7
vim.yml Normal file
View File

@ -0,0 +1,7 @@
---
- name: Install vim and copy color scheme and template its config
hosts: vim
become: true
roles:
- vim

3
vim/.netrwhist Normal file
View File

@ -0,0 +1,3 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =1
let g:netrw_dirhist_1='/home/electron/git/critical_infrastructure'