Updated vimrc and place it as cody
This commit is contained in:
@@ -47,16 +47,24 @@
|
||||
|
||||
- name: Create vim autoload directory
|
||||
file: path=/home/cody/.vim/autoload state=directory
|
||||
become: yes
|
||||
become_user: cody
|
||||
|
||||
- name: Create vim bundle directory
|
||||
file: path=/home/cody/.vim/bundle state=directory
|
||||
become: yes
|
||||
become_user: cody
|
||||
|
||||
- name: Install pathogen
|
||||
shell: curl -LSso /home/cody/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
||||
when: not pathogen_installed.stat.exists
|
||||
become: yes
|
||||
become_user: cody
|
||||
|
||||
- name: Replace .vimrc
|
||||
template: src=../roles/developer-machine/templates/vimrc.j2 dest=/home/cody/.vimrc
|
||||
become: yes
|
||||
become_user: cody
|
||||
|
||||
- name: Nerdtree installed
|
||||
stat: path=/home/cody/.vim/bundle/nerdtree
|
||||
@@ -66,4 +74,6 @@
|
||||
git: repo=https://github.com/scrooloose/nerdtree.git
|
||||
dest=/home/cody/.vim/bundle/nerdtree
|
||||
when: not nerdtree_installed.stat.exists
|
||||
become: yes
|
||||
become_user: cody
|
||||
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
execute pathogen#infect()
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
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