Enable VIM options
This commit is contained in:
parent
d66cd26e39
commit
effdae80df
|
@ -235,4 +235,24 @@
|
||||||
- name: update grub config
|
- name: update grub config
|
||||||
command: update-grub
|
command: update-grub
|
||||||
when: grub_register.changed
|
when: grub_register.changed
|
||||||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
# Enable VIM options
|
||||||
|
# step1 - create file vimrc.local
|
||||||
|
- name: create file vimrc.local
|
||||||
|
file:
|
||||||
|
path: "{{ path_vimrclocal }}"
|
||||||
|
state: touch
|
||||||
|
mode: '0644'
|
||||||
|
# step2 - add some options to the file
|
||||||
|
- name: add some options to vimrc.local
|
||||||
|
blockinfile:
|
||||||
|
path: "{{ path_vimrclocal }}"
|
||||||
|
block: |
|
||||||
|
syntax on
|
||||||
|
set showcmd
|
||||||
|
set showmatch
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -11,3 +11,4 @@ bindpw_password: !vault |
|
||||||
65316535626434333331633438613639633163643765633064363833303461363834653864646464
|
65316535626434333331633438613639633163643765633064363833303461363834653864646464
|
||||||
3133313233353730620a343536316266393637623563313563613332646630643632366439343764
|
3133313233353730620a343536316266393637623563313563613332646630643632366439343764
|
||||||
30383935303161646339393361393130613266663337373364626635646430326465
|
30383935303161646339393361393130613266663337373364626635646430326465
|
||||||
|
path_vimrclocal: /etc/vim/vimrc.local
|
Loading…
Reference in New Issue