From 4868144e69da77345333e16dbdf71c0767a90a58 Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Fri, 7 Jul 2023 15:15:48 -0700 Subject: [PATCH] Prevent vim sourcing order overriding settings like mouse-=a with defaults.vim --- README.md | 9 +++++++-- tasks/vim.yml | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7445ae2..be01e2c 100644 --- a/README.md +++ b/README.md @@ -28,5 +28,10 @@ None. ## Troubleshooting -* current vim runtime path with `:set runtimepath?` -* Check vim `:version` +```vim +:scriptnames +:set runtimepath? +:version +``` + +Also `vim -V` \ No newline at end of file diff --git a/tasks/vim.yml b/tasks/vim.yml index 83074d3..b4fc122 100644 --- a/tasks/vim.yml +++ b/tasks/vim.yml @@ -19,7 +19,8 @@ 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 - endif \ No newline at end of file + endif