mullholland.vim

Ansible role vim

Installs and configures vim.

GitHub Downloads Version
github downloads Version

Example Playbook

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true
  roles:
    - role: "mullholland.vim"

The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: true

  tasks:
    - name: Debian/Ubuntu | update apt cache
      ansible.builtin.apt:
        update_cache: true
      when: ansible_os_family == "Debian"

Role Variables

The default values for the variables are set in defaults/main.yml:

---
# global vim configuration values
# A small collection of the settings i use at the moment
# feel free to test and change these
# syntax on => adds syntax highlighting
# set expandtab => insert space characters whenever the tab key is pressed
# set shiftwidth=2 => change the number of space characters inserted for indentation
# set softtabstop=2 => cause <Tab> and <BS> to insert and delete the correct number of spaces
# set autoindent => autoindent essentially tells vim to apply the indentation of the current line to the next

vim_config:
  - "syntax on"
  - "set expandtab"
  - "set shiftwidth=2"
  - "set softtabstop=2"
  - "set autoindent"

Requirements

Context

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

container tags
EL all
Amazon Candidate
Fedora all
Ubuntu all
Debian all

The minimum version of Ansible required is 2.10, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub.

License

MIT.

Author Information

Mullholland

About

Installs and configures vim.

Install
ansible-galaxy install mullholland.vim
GitHub repository
License
apache-2.0
Downloads
98