Problem
A setting in my vimrc (set noshowmode) is being overridden by a plugin later in the loading process.
Goal
Have a VimScript file be executed last (or at least after plugins).
What I Know
- Plugin VimScripts are executed after the
vimrc(Source). - The
after-directoryis run close to last and holds user overrides (Source::h after-directory). - Vim's
runtimepathdetermines the order of what is run.
Failed Attempts
I tried appending a VimScript file (containing
set noshowmode) to the end of$VIMRUNTIMEwithset runtimepath=$VIMRUNTIME,~/.vim/nosmd.vim, but this method ended up messing up other plugins (namelyvim-airline, which did not load).I also tried creating the
~/.vim/afterdirectory and putting my VimScript in there, but this had no effect.