-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim.yml
More file actions
48 lines (38 loc) · 1.88 KB
/
vim.yml
File metadata and controls
48 lines (38 loc) · 1.88 KB
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
---
#
- hosts: vim
sudo: true
tasks:
- name: install jshint
command: npm install -g jshint
- name: create patoghen dirs
file: path=/home/vagrant/.vim/autoload state=directory
- name: create patoghen dirs
file: path=/home/vagrant/.vim/bundle state=directory
- name: install patoghen
command: curl -LSso /home/vagrant/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
- name: add softtabs
lineinfile: dest=/home/vagrant/.vimrc line="set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab" state=present create=yes
- name: add pathogen to vimrc
lineinfile: dest=/home/vagrant/.vimrc line="execute pathogen#infect()" state=present create=yes
- name: install jshint2.vim
command: git clone https://github.com/Shutnik/jshint2.vim.git chdir=/home/vagrant/.vim/bundle creates=/home/vagrant/.vim/bundle/jshint2.vim
- name: install ctrlp
command: git clone https://github.com/kien/ctrlp.vim.git chdir=/home/vagrant/.vim/bundle creates=/home/vagrant/.vim/bundle/ctrlp.vim
- name: set vim as default editor
lineinfile: dest=/home/vagrant/.profile line="export EDITOR=vim;" state=present create=yes
- name: set vim jshint parameters
lineinfile: dest=/home/vagrant/.vimrc line="{{ item }}" state=present create=yes
with_items:
- "let jshint2_save = 1"
- "let jshint2_confirm = 0"
- "nnoremap <silent><F1> :JSHint<CR>"
- "inoremap <silent><F1> <C-O>:JSHint<CR>"
- "vnoremap <silent><F1> :JSHint<CR>"
- "nnoremap <silent><F2> :lnext<CR>"
- "inoremap <silent><F2> <C-O>:lnext<CR>"
- "vnoremap <silent><F2> :lnext<CR>"
- "nnoremap <silent><F3> :lprevious<CR>"
- "inoremap <silent><F3> <C-O>:lprevious<CR>"
- "vnoremap <silent><F3> :lprevious<CR>"
- 'let g:ctrlp_custom_ignore = ''node_modules\|DS_Store\|git'''