mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-16 20:35:25 +00:00
33 lines
718 B
YAML
33 lines
718 B
YAML
|
- name: Install vim
|
||
|
become: true
|
||
|
package:
|
||
|
name: vim
|
||
|
state: latest
|
||
|
|
||
|
- name: Prepare vim...
|
||
|
file:
|
||
|
path: ~/.vim/autoload
|
||
|
state: directory
|
||
|
|
||
|
- name: Install vim Plug
|
||
|
get_url:
|
||
|
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||
|
dest: ~/.vim/autoload/plug.vim
|
||
|
|
||
|
- name: "Copy vimrc file"
|
||
|
copy:
|
||
|
src: dotfiles/vimrc
|
||
|
dest: "~/.vimrc"
|
||
|
|
||
|
- name: "Set vim colorscheme"
|
||
|
ansible.builtin.lineinfile:
|
||
|
path: "~/.vimrc"
|
||
|
regexp: "^colorscheme"
|
||
|
line: "colorscheme {{theme}}"
|
||
|
|
||
|
- name: "Set vim lightline colorscheme"
|
||
|
ansible.builtin.lineinfile:
|
||
|
path: "~/.vimrc"
|
||
|
regexp: "^let g:lightline.colorscheme"
|
||
|
line: "let g:lightline.colorscheme = '{{theme}}'"
|