On Mon, 19 Mar 2012, Timothy Madden wrote:
On 14.03.2012 20:11, Benjamin R. Haskell wrote:
[...]
Right, so is there any reason you don't have control over what's
being added to &rtp?
(You didn't answer that.)
I believe the order of the directories in &runtimepath is significant.
The fact that Vim has those after/ directories, which are meant to
come last in &runtimepath, shows my point I believe.
Of course it's significant.
Now, since 'runtimepath' is a user setting, that is 'runtimepath' is
meant to be set and modified by the user, not automatically by my
script, than I want to try to make my script as non-intrusive as
possible.
So, don't modify 'runtimepath' in your script. Unless you're writing a
plugin manager of some sort, you really shouldn't be changing &rtp
anyway. And even then, you shouldn't be changing &rtp.
&rtp is just like PATH. If you're distributing a script, you shouldn't
be modifying it. It's the user's responsibility for setting it up
properly and/or installing files into the right locations in the first place.
That means I want to at least put my directory, which is ~/.vim, in
the right position in &runtimepath, in front of the $VIMRUNTIME
directory.
It's still completely unclear to me why you can't do exactly that.
If you're in control of &rtp, just set it up precisely how you want
to set it up:
se rtp^=~/.vim
se rtp.=~/.vim/after
Or even the whole shebang:
se rtp=~/.vim,$VIMRUNTIME,~/.vim/after
If you're not in control of &rtp, why aren't you?
--
Best,
Ben
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php