[vim/vim] packadd vs. runtimepath (#3393)

101 views
Skip to first unread message

Miroslav Koškár

unread,
Aug 31, 2018, 4:35:51 AM8/31/18
to vim/vim, Subscribed

Having packadd! ultisnips in my .vimrc results in runtime path:

~/.vim
~/.vim/pack/custom/opt/ultisnips
/usr/share/vim/vimfiles
/usr/share/vim/vim81
/usr/share/vim/vimfiles/after
~/.vim/after
~/.vim/pack/custom/opt/ultisnips/after

Even though :help documents this behavior

If the directory pack/*/opt/{name}/after exists it is
added at the end of 'runtimepath'.

shouldn't it rather look like following?

~/.vim
~/.vim/pack/custom/opt/ultisnips
/usr/share/vim/vimfiles
/usr/share/vim/vim81
/usr/share/vim/vimfiles/after
~/.vim/pack/custom/opt/ultisnips/after
~/.vim/after


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Christian Brabandt

unread,
Sep 10, 2018, 4:21:25 AM9/10/18
to vim/vim, Subscribed

Christian Brabandt

unread,
Sep 10, 2018, 4:21:26 AM9/10/18
to vim/vim, Subscribed

Closed #3393.

K.Takata

unread,
Sep 10, 2018, 4:44:56 AM9/10/18
to vim/vim, Subscribed

Oh, #3409 was duplicate of this...

Miroslav Koškár

unread,
Oct 2, 2018, 7:10:48 AM10/2/18
to vim/vim, Subscribed

Running 8.1 Included patches: 1-374

I get:

~/.vim
~/.vim/pack/custom/opt/ultisnips
/usr/share/vim/vimfiles
/usr/share/vim/vim81
~/.vim/pack/custom/opt/ultisnips/after
/usr/share/vim/vimfiles/after
~/.vim/after

I would object that /usr/share/vim/vimfiles/after should come before ~/.vim/pack/custom/opt/ultisnips/after, i.e., before and after dirs should be "mirrored" over $VIMRUNTIME (/usr/share/vim/vim81 in this case).

Can we get this reopened?

Bram Moolenaar

unread,
Oct 2, 2018, 9:48:12 AM10/2/18
to vim/vim, Subscribed

What's the problem? the package "after" directory would come from the distributed plugin, thus you might want to overrule things from that plugin in your personal "after" directory

Miroslav Koškár

unread,
Oct 3, 2018, 7:11:17 AM10/3/18
to vim/vim, Subscribed

To rephrase it, I would expect "after" directories to be in reverse order of directories before $VIMRUNTIME. IMHO it makes sense and is pretty straightforward rule.

James McCoy

unread,
Oct 3, 2018, 7:26:54 AM10/3/18
to vim/vim, Subscribed

To be clear, the part that's odd is the order of these two:

~/.vim/pack/custom/opt/ultisnips/after
/usr/share/vim/vimfiles/after

One would expect stuff under ~/.vim to come after stuff in /usr so the user can override.

Reply all
Reply to author
Forward
0 new messages