dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2299d2d0de59633bbc5dcd2e57d15afc16d02187
parent b92c3b6b032f9702b2bf3ee55171c0d4d103b24e
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Fri, 20 Nov 2020 21:30:07 +0100

vim: lazy-load ftplugin/man.vim to speed up startup

For some reason, loading man.vim takes long. Since I don't always use
that command, it's nicer to lazy-load it.


Former-commit-id: 84913a8b7df0a4f67dfae25fb82e1649aa0f746f
Diffstat:
Mvim/vimrc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -459,7 +459,12 @@ set thesaurus=~/.vim/words/thesaurus/mthesaur.txt runtime macros/matchit.vim " same with :Man -runtime ftplugin/man.vim +" I'm lazy-loading this because it really affects my startup time. +" I'm not the only one: https://www.reddit.com/r/vim/comments/emx856/lazy_loading_man_page_plugin/ +silent! command! -bar -nargs=* Man + \ delcommand Man | + \ runtime ftplugin/man.vim | + \ Man <args> " For editing binaries set binary