Prevent vim sourcing order overriding settings like mouse-=a with defaults.vim

This commit is contained in:
Brian Lee 2023-07-07 15:15:48 -07:00
parent 2497a648bf
commit 4868144e69
2 changed files with 9 additions and 3 deletions

View File

@ -28,5 +28,10 @@ None.
## Troubleshooting ## Troubleshooting
* current vim runtime path with `:set runtimepath?` ```vim
* Check vim `:version` :scriptnames
:set runtimepath?
:version
```
Also `vim -V`

View File

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