dotfiles/tasks/vim.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2019-03-14 21:34:29 +00:00
- name: "Install dev packages"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
loop:
2019-03-14 21:34:29 +00:00
- 'gvim'
- 'vim-pathogen'
2019-05-25 16:50:09 +01:00
- name: Install vimrc
copy:
2018-09-10 09:04:26 +01:00
src: ./files/vimrc
2018-09-17 17:22:15 +01:00
dest: "{{ home }}/.vimrc"
2018-09-10 09:04:26 +01:00
mode: 0644
2018-09-17 17:22:15 +01:00
owner: "{{ user }}"
2018-09-10 09:04:26 +01:00
group: users
2019-05-25 16:50:09 +01:00
- name: Install vimrc for root user
copy:
2018-09-10 09:04:26 +01:00
src: ./files/vimrc
dest: /root/.vimrc
mode: 0644
owner: root
group: users
2019-05-25 16:50:09 +01:00
- name: Create vim packages directory
file:
2019-01-04 22:47:25 +00:00
path: '{{ home }}/.vim/bundle'
state: directory
owner: "{{ user }}"
mode: 0755
- name: Install vim packages
git:
repo: "{{ item }}"
dest: "{{ home }}/.vim/bundle/{{ item.split('/')[-1] }}"
2018-09-10 09:04:26 +01:00
force: true
2019-01-04 22:47:25 +00:00
become: true
become_user: "{{ user }}"
loop:
2019-01-04 22:47:25 +00:00
- 'https://github.com/junegunn/goyo.vim'
- 'https://github.com/itchyny/lightline.vim'
- 'https://github.com/scrooloose/nerdtree'
- 'https://github.com/vim-scripts/peaksea'
- 'https://github.com/terryma/vim-multiple-cursors'
- 'https://github.com/jremmen/vim-ripgrep'
- 'https://github.com/amix/vim-zenroom2'