On Wed, 14 Mar 2012, Timothy Madden wrote:

Hello

How come on Windows ~/.vim/ is not on my &runtimepath ? I can see that vim will load plugins there anyway.

For all the rationale, see:

:help startup


I would like my plugin to search the &runtimepath for an associated python .py file to load, but I would like to include ~/.vim/ in the list of directories to be searched, in the right place in &rtp, before the $VIMRUNTIME directory.

For this I would like to expand and normalize ~/.vim/, $VIMRUNTIME and any directory on the &runtimepath.

But I found no way to get the canonical / normalized file name appropriate for the current platform.

So, don't normalize it:

" 'rtp' = 'runtimepath'
:let &rtp = '~/.vim,' . &rtp

Probably better:

:let &rtp = '~/.vim,' . &rtp . ',~/.vim/after'

Works fine (tested on Win Server 2K8).

--
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

Reply via email to