Simplify tasks by moving let over to vimrc.local, also fix Debian

This commit is contained in:
Brian Lee 2023-07-20 10:13:19 -07:00
parent 4868144e69
commit ca09628ea8
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,5 @@
let skip_defaults_vim=1
" -- General Settings
set mouse-=a " No mouse, see https://github.com/vim/vim/issues/12621
set encoding=utf-8 " Necessary to show Unicode glyphs

View File

@ -13,6 +13,13 @@
- /etc/skel
- /root
- name: Ensure Arch Linux sources bash_aliases
lineinfile:
path: /root/.bashrc
line: '[ -f ~/.bash_aliases ] && source ~/.bash_aliases'
create: yes
when: ansible_os_family == 'Archlinux'
- name: Copy shell configuration
ansible.builtin.copy:
src: inputrc

View File

@ -19,7 +19,6 @@
path: /etc/vimrc
marker: '" {mark} ANSIBLE MANAGED BLOCK'
block: |
let skip_defaults_vim=1
set runtimepath+=/var/lib/vim/addons
if filereadable("/etc/vimrc.local")
source /etc/vimrc.local