Updated vimrc and place it as cody
This commit is contained in:
@@ -47,16 +47,24 @@
|
|||||||
|
|
||||||
- name: Create vim autoload directory
|
- name: Create vim autoload directory
|
||||||
file: path=/home/cody/.vim/autoload state=directory
|
file: path=/home/cody/.vim/autoload state=directory
|
||||||
|
become: yes
|
||||||
|
become_user: cody
|
||||||
|
|
||||||
- name: Create vim bundle directory
|
- name: Create vim bundle directory
|
||||||
file: path=/home/cody/.vim/bundle state=directory
|
file: path=/home/cody/.vim/bundle state=directory
|
||||||
|
become: yes
|
||||||
|
become_user: cody
|
||||||
|
|
||||||
- name: Install pathogen
|
- name: Install pathogen
|
||||||
shell: curl -LSso /home/cody/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
shell: curl -LSso /home/cody/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
||||||
when: not pathogen_installed.stat.exists
|
when: not pathogen_installed.stat.exists
|
||||||
|
become: yes
|
||||||
|
become_user: cody
|
||||||
|
|
||||||
- name: Replace .vimrc
|
- name: Replace .vimrc
|
||||||
template: src=../roles/developer-machine/templates/vimrc.j2 dest=/home/cody/.vimrc
|
template: src=../roles/developer-machine/templates/vimrc.j2 dest=/home/cody/.vimrc
|
||||||
|
become: yes
|
||||||
|
become_user: cody
|
||||||
|
|
||||||
- name: Nerdtree installed
|
- name: Nerdtree installed
|
||||||
stat: path=/home/cody/.vim/bundle/nerdtree
|
stat: path=/home/cody/.vim/bundle/nerdtree
|
||||||
@@ -66,4 +74,6 @@
|
|||||||
git: repo=https://github.com/scrooloose/nerdtree.git
|
git: repo=https://github.com/scrooloose/nerdtree.git
|
||||||
dest=/home/cody/.vim/bundle/nerdtree
|
dest=/home/cody/.vim/bundle/nerdtree
|
||||||
when: not nerdtree_installed.stat.exists
|
when: not nerdtree_installed.stat.exists
|
||||||
|
become: yes
|
||||||
|
become_user: cody
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
execute pathogen#infect()
|
execute pathogen#infect()
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
|
||||||
let g:NERDTreeDirArrows=0
|
let g:NERDTreeDirArrows=0
|
||||||
|
set number
|
||||||
|
set noautoindent
|
||||||
|
set nocindent
|
||||||
|
set nosmartindent
|
||||||
|
set tabstop=2
|
||||||
|
set shiftwidth=2
|
||||||
|
set expandtab
|
||||||
|
colorscheme elflord
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user