2024-02-15 11:37:59 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG VIM OPTIONS] Comprobando si es necesario configurar vim options"
|
|
|
|
meta: end_host
|
2024-02-15 17:50:53 +00:00
|
|
|
when: vim_options_enabled is not defined or not vim_options_enabled
|
2024-02-15 11:37:59 +00:00
|
|
|
|
2024-02-12 09:49:16 +00:00
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# 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
|
|
|
|
lineinfile:
|
|
|
|
path: "{{ path_vimrclocal }}"
|
|
|
|
line: "{{item.line}}"
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- line: syntax on
|
|
|
|
- line: set showcmd
|
|
|
|
- line: set showmatch
|
|
|
|
- line: set ignorecase
|
|
|
|
- line: set smartcase
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|