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-directory
is run close to last and holds user overrides (Source::h after-directory
). - Vim's
runtimepath
determines the order of what is run.
Failed Attempts
I tried appending a VimScript file (containing
set noshowmode
) to the end of$VIMRUNTIME
withset 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/after
directory and putting my VimScript in there, but this had no effect.