/ansible-vim

Install Pathogen, Solarized, Nerdtree, AutoComplPop, vim-fugitive and CtrlP for Vim. Copy my .vimrc

Ansible Role for Vim

This role:

  • install Vim
  • copy my .vimrc to ~/.vimrc
  • install Pathogen
  • install Solarized
  • install Nerdtree
  • install AutoComplPop
  • install vim-fugitive
  • install CtrlP
  • install vim-better-whitespace

This role works for OS X, Debian and Ubuntu.

Requirements

  1. If you are provisioning Debian based OS, please note that the task Install Dependencies requires sudo. Please make that the user that your control machine ssh into has sudo access. I recommend using ansible_ssh_user in your inventory file, e.g.

    [test_server]
    xxx.xxx.xxx.xxx ansible_ssh_user=exampleuser
    

    You can use --ask-sudo-pass when running your playbook

    ansible-playbook playbook.yml -i inventory.ini --ask-sudo-pass

  2. If you are provisioning OSX, you should have homebrew already installed. You don`t need sudo

Role Variables

NONE

Dependencies

NONE

Example Playbook

- hosts: servers
  roles:
    - role: ChengLong.vim

License

WTFPL

Author Information

Cheng Long