Skip to content

Commit

Permalink
add vim playbook
Browse files Browse the repository at this point in the history
vimをインストールする。
Raspbian Stretchから導入されたいくつかの設定を無効化する。
* ビジュアルモードの無効化
* オートインデントの無効化
* カーソルが画面下or上まで行く前にスクロールされるのを無効化
  • Loading branch information
Akkiesoft committed Nov 7, 2018
1 parent 73ec7cc commit e807ec8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ansible/roles/vim/tasks/main.yml
@@ -0,0 +1,26 @@
- name: install vim
apt:
name: vim
state: present
become: yes

- name: disable mouse
replace:
path: /usr/share/vim/vim80/defaults.vim
regexp: '^ set mouse=a'
replace: '" set mouse=a'
become: yes

- name: disable auto indent
replace:
path: /usr/share/vim/vim80/defaults.vim
regexp: "filetype plugin indent on"
replace: "filetype plugin indent off"
become: yes

- name: disable scrolloff
replace:
path: /usr/share/vim/vim80/defaults.vim
regexp: "scrolloff=5"
replace: "scrolloff=0"
become: yes
5 changes: 5 additions & 0 deletions ansible/vim.yml
@@ -0,0 +1,5 @@
---
- hosts: all
gather_facts: no
roles:
- vim

0 comments on commit e807ec8

Please sign in to comment.