vim: add role
This commit is contained in:
parent
3ff61351ba
commit
051a8879d4
@ -22,3 +22,7 @@ tmux:
|
|||||||
hosts:
|
hosts:
|
||||||
xenon:
|
xenon:
|
||||||
|
|
||||||
|
vim:
|
||||||
|
hosts:
|
||||||
|
xenon:
|
||||||
|
|
||||||
|
23
roles/vim/tasks/main.yml
Normal file
23
roles/vim/tasks/main.yml
Normal 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
7
vim.yml
Normal 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
3
vim/.netrwhist
Normal 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'
|
Loading…
Reference in New Issue
Block a user