vim-and-vi-mode
Ansible Role: Vim & Vi-mode
An Ansible role of Install Vim and use vi-mode in everyway.
- Install Vim.
- Switch default editor to Vim.
- Use vi-mode in Bash, Readline and Git.
Requirements
None.
Role Variables
None.
Dependencies
None.
Example Playbook
- hosts: all
roles:
- { role: chusiang.vim-and-vi-mode }
Docker Container
This repository contains Dockerized Ansible, published to the public Docker Hub via automated build mechanism.
Docker Hub: chusiang/vim-and-vi-mode
Images
- chusiang/vim-and-vi-mode:ubuntu16.04 (lastest)
- chusiang/vim-and-vi-mode:ubuntu14.04
- chusiang/vim-and-vi-mode:debian9
- chusiang/vim-and-vi-mode:debian8
chusiang/vim-and-vi-mode:debian7(EOL)- chusiang/vim-and-vi-mode:centos7
chusiang/vim-and-vi-mode:centos6(EOL)- chusiang/vim-and-vi-mode:alpine3
Usage
Normal mode
Run container.
$ docker run -it -v $PWD:/srv chusiang/vim-and-vi-mode:debian9 bash
root@a138a8d7ca3c:/tmp# vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 30 2017 18:21:38)
...
Daemon (service) mode
Run container as service.
$ docker run --name vim -d -v $PWD:/srv chusiang/vim-and-vi-mode:debian9 run.sh 4f4abc41abff3e4dbd37145fafd84a43de0230599883ebd82249b778ea1994c6
Enter the container.
$ docker exec -it vim bash
License
Copyright (c) chusiang from 2016-2018 under the MIT license.
Install
ansible-galaxy install chusiang/vim-and-vi-mode.ansible.role
License
mit
Downloads
910
Owner
A system engineer, like @DevOpsTW, @ansible-tw, @vim-tw, docker and @linux-taiwan. Hope one day can build a "🦄 Unicorn company" like《The Phoenix Project》.