From bca606965430e2ff6e6500ef7e80a97f6c9b6832 Mon Sep 17 00:00:00 2001 From: rubenb Date: Fri, 20 Oct 2023 09:05:56 +0200 Subject: [PATCH] update vim options --- roles/config-base-debian-os/tasks/main.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/roles/config-base-debian-os/tasks/main.yaml b/roles/config-base-debian-os/tasks/main.yaml index 5d43fb2..d252cfd 100644 --- a/roles/config-base-debian-os/tasks/main.yaml +++ b/roles/config-base-debian-os/tasks/main.yaml @@ -249,12 +249,14 @@ mode: '0644' # step2 - add some options to the file - name: add some options to vimrc.local - blockinfile: + lineinfile: path: "{{ path_vimrclocal }}" - block: | - syntax on - set showcmd - set showmatch - set ignorecase - set smartcase + line: "{{item.line}}" + state: present + with_items: + - line: syntax on + - line: set showcmd + - line: set showmatch + - line: set ignorecase + - line: set smartcase #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \ No newline at end of file