-
Notifications
You must be signed in to change notification settings - Fork 1
/
ansible-lint-for-vim.yml
124 lines (106 loc) · 2.96 KB
/
ansible-lint-for-vim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
- hosts: localhost
become: no
gather_facts: no
tasks:
- name: check directory
file:
path: ~/.vim/autoload/
state: directory
- name: check directory
file:
path: ~/.vim/bundle/
state: directory
- name: get pathogen
get_url:
url: https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
dest: ~/.vim/autoload/pathogen.vim
use_proxy: yes
environment:
https_proxy: http://proxy.company.com/
- name: chekck ~/.vimrc exists
file:
path: ~/.vimrc
state: touch
- name: update .vimrc
lineinfile:
path: ~/.vimrc
insertbefore: BOF
line: execute pathogen#infect()
- name: update .vimrc
lineinfile:
path: ~/.vimrc
line: filetype plugin indent on
- name: update .vimrc
lineinfile:
path: ~/.vimrc
regex: "^syntax[\\s]*"
firstmatch: yes
line: syntax on
- name: update .vimrc
lineinfile:
path: ~/.vimrc
regex: "^syntax[\\s]*"
firstmatch: yes
line: autocmd FileType yaml setlocal ai ts=2 sw=2 et
- name: update .vimrc
lineinfile:
path: ~/.vimrc
regex: "^syntax[\\s]*"
firstmatch: yes
line: set backspace=indent,eol,start
- name:
command:
chdir: "~/.vim"
argv:
- git
- init
creates: ~/.vim/.git
- name:
command:
chdir: "~/.vim"
argv:
- git
- submodule
- init
- name: configure git to talk to the https proxy
git_config:
name: https.proxy
value: "http://proxy.xxxxxx.com/"
scope: "global"
- name: configure git to talk to the http proxy
git_config:
name: http.proxy
value: "http://proxy.company.com/"
scope: "global"
- name: configure git to talk ignore the ssl cert validation
git_config:
name: http.sslVerify
value: "false"
scope: "global"
- name: add module https://github.com/pearofducks/ansible-vim
git:
repo: https://github.com/pearofducks/ansible-vim.git
dest: ~/.vim/bundle/ansible-vim
track_submodules: yes
environment:
https_proxy: http://proxy.xxxxx.com/
# Check includes (indentLine/ vim-sensible/)
- name: add indentLine module from https://github.com/Yggdroot/indentLine
git:
repo: https://github.com/Yggdroot/indentLine.git
dest: ~/.vim/bundle/indentLine
track_submodules: yes
environment:
https_proxy: http://proxy.xxxxxxx.com/
# .myvimrc
#execute pathogen#infect()
#set cuc
#set cursorline
#autocmd FileType yaml setlocal ai ts=2 sw=2 et nu
#autocmd FileType yml setlocal ai ts=2 sw=2 et nu
#autocmd FileType yaml color zellner
#autocmd FileType yml color zellner
#colorscheme zellner
#syntax on
#filetype plugin indent on