Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vimをインストールする。 Raspbian Stretchから導入されたいくつかの設定を無効化する。 * ビジュアルモードの無効化 * オートインデントの無効化 * カーソルが画面下or上まで行く前にスクロールされるのを無効化
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- hosts: all | ||
gather_facts: no | ||
roles: | ||
- vim |