Added pathogen and nerdtree to developer machine

This commit is contained in:
2017-05-10 08:49:55 -04:00
parent 53d7621c76
commit cefe8c3f19
2 changed files with 31 additions and 0 deletions

View File

@@ -37,3 +37,30 @@
- name: Install xrdp
apt: name=xrdp state=present
- name: Pathogen installed
stat: path=/home/cody/.vim/autoload/pathogen.vim
register: pathogen_installed
- name: Create vim autoload directory
file: path=/home/cody/.vim/autoload state=directory
- name: Create vim bundle directory
file: path=/home/cody/.vim/bundle state=directory
- name: Install pathogen
shell: curl -LSso /home/cody/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
when: not pathogen_installed.stat.exists
- name: Replace .vimrc
template: src=../roles/developer-machine/templates/vimrc.j2 dest=/home/cody/.vimrc
- name: Nerdtree installed
stat: path=/home/cody/.vim/bundle/nerdtree
register: nerdtree_installed
- name: Install nerdtree
git: repo=https://github.com/scrooloose/nerdtree.git
dest=/home/cody/.vim/bundle/nerdtree
when: not nerdtree_installed.stat.exists

View File

@@ -0,0 +1,4 @@
execute pathogen#infect()
syntax on
filetype plugin indent on