Use the vimrc from env-shared.
This commit is contained in:
@@ -1224,31 +1224,6 @@
|
||||
ignore_errors: yes
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | Files | .vimrc
|
||||
blockinfile:
|
||||
path: "{{ item }}/.vimrc"
|
||||
block: |
|
||||
" Turn off syntax, flashy lights, etc. Make VIM into a basic editor.
|
||||
syntax off
|
||||
set nohlsearch
|
||||
set noautoindent noautowrite noshowmatch wrapmargin=0 report=1 ts=3
|
||||
set ignorecase
|
||||
|
||||
" Turn off auto-commenting.
|
||||
autocmd Filetype * set fo-=c fo-=r fo-=o
|
||||
|
||||
" qq shortcut for immediately exiting all files without saving.
|
||||
nnoremap qq :qa!<cr>
|
||||
marker: '" {mark} MANAGED BY ANSIBLE | vimrc'
|
||||
state: present
|
||||
create: yes
|
||||
backup: yes
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
- "{{ user_user.home }}"
|
||||
ignore_errors: yes
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | Files | Ownership
|
||||
file:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
@@ -1257,7 +1232,6 @@
|
||||
loop:
|
||||
- .bashrc
|
||||
- .zshrc
|
||||
- .vimrc
|
||||
|
||||
|
||||
- name: General | Account Management | Users | Files | Helper Functions (Reset)
|
||||
@@ -1285,7 +1259,7 @@
|
||||
update: true
|
||||
ignore_errors: yes
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Install | rc_shared
|
||||
- name: General | Account Management | Users | env-shared | Install | .rc_shared
|
||||
copy:
|
||||
src: "{{ shared_rc_install_dir }}/rc_shared.sh"
|
||||
dest: "{{ item }}/.rc_shared"
|
||||
@@ -1298,6 +1272,19 @@
|
||||
ignore_errors: yes
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Install | .vimrc
|
||||
copy:
|
||||
src: "{{ shared_rc_install_dir }}/vimrc.vim"
|
||||
dest: "{{ item }}/.vimrc"
|
||||
owner: root
|
||||
group: "{{ root_group }}"
|
||||
mode: 0755
|
||||
loop:
|
||||
- "{{ user_root.home }}"
|
||||
- "{{ user_user.home }}"
|
||||
ignore_errors: yes
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Permissions
|
||||
file:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
@@ -1305,4 +1292,5 @@
|
||||
mode: '0755'
|
||||
loop:
|
||||
- .rc_shared
|
||||
- .vimrc
|
||||
ignore_errors: yes
|
||||
|
||||
Reference in New Issue
Block a user