Long Vim start time after upgrading Debian

14 views
Skip to first unread message

John Magolske

unread,
Sep 5, 2022, 5:14:50 PM9/5/22
to vim...@googlegroups.com
Hi,

After upgrading my Debian system from buster to bullseye (Vim 8.1 to
8.2), I'm seeing a noticeably longer start time for Vim, about 5-6
seconds. I tried:

vim --startuptime vim.log

and looking at that vim.log file it seems sourcing the syntax.vim file
is what's taking unusually long:

...
050.939 001.488 000.145: sourcing /usr/share/vim/vim82/syntax/synload.vim
050.969 001.925 000.184: sourcing /usr/share/vim/vim82/syntax/syntax.vim
5275.196 5255.470 5241.109: sourcing $HOME/.vimrc
5275.233 000.122: sourcing vimrc file(s)
...

Not sure what changed in upgrading my Debian OS that could've caused
this added startup time... any clues or suggestions much appreciated.

Thanks,

John

--
John Magolske
http://b79.net/contact

John Magolske

unread,
Sep 9, 2022, 4:03:58 AM9/9/22
to vim...@googlegroups.com
Problem solved,

* john magolske <list...@b79.net> [220905 14:14]:
> after upgrading my debian system from buster to bullseye (vim 8.1 to
> 8.2), i'm seeing a noticeably longer start time for vim, about 5-6
> seconds. i tried:
>
> vim --startuptime vim.log
>
> and looking at that vim.log file it seems sourcing the syntax.vim file
> is what's taking unusually long:
>
> ...
> 050.939 001.488 000.145: sourcing /usr/share/vim/vim82/syntax/synload.vim
> 050.969 001.925 000.184: sourcing /usr/share/vim/vim82/syntax/syntax.vim
> 5275.196 5255.470 5241.109: sourcing $home/.vimrc
> 5275.233 000.122: sourcing vimrc file(s)
> ...

With `vim -u NONE` I saw the 5-second delay go away and realized
something in my ~/.vimrc was the culprit. A binary search narrowed it
down to a block added by OPAM user-setup (for OCaml), which was old &
out of date as I haven't used it in a while. Removing that solved the
problem.

Cheers,
Reply all
Reply to author
Forward
0 new messages